Re: [PATCH 1/11] Add generic helpers for arch IPI function calls

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Linus Torvalds <torvalds@...>
Cc: <linux-arch@...>, <linux-kernel@...>, <npiggin@...>
Date: Tuesday, April 22, 2008 - 11:07 am

On Tue, Apr 22 2008, Linus Torvalds wrote:

Yes, if wait is set, it's on the stack.


Hmm yes, double checking it and it would seem to leak for wait &&
kmalloc'ed data. I think I originally had the wait case as always on
stack, which would explain this leak.


Alright, I'll make 'wait' always alloc on the stack and I'll make
allocation failure turn into 'wait' as well. That'll leave just
kmalloc() and stack allocation, killing the static data fallback.


No, I think that should work ok. I'll post a new series with the changes
so we can see if we agree.

-- 
Jens Axboe

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/11] Generic smp_call_function() and friends, Jens Axboe, (Tue Apr 22, 3:57 am)
Re: [PATCH 0/11] Generic smp_call_function() and friends, Peter Zijlstra, (Tue Apr 22, 4:48 am)
Re: [PATCH 11/11] s390: convert to generic helpers for IPI f..., Martin Schwidefsky, (Tue Apr 22, 4:04 am)
Re: [PATCH 2/11] x86: convert to generic helpers for IPI fun..., Jeremy Fitzhardinge, (Sat Apr 26, 4:59 am)
Re: [PATCH 1/11] Add generic helpers for arch IPI function c..., Rafael J. Wysocki, (Thu Apr 24, 5:30 pm)
Re: [PATCH 1/11] Add generic helpers for arch IPI function c..., Jens Axboe, (Tue Apr 22, 11:07 am)