Re: [PATCH] powerpc: eeh_event: convert semaphore to completion

2018-12-10 Thread Sam Bobroff
On Tue, Dec 11, 2018 at 10:18:31AM +1100, Oliver wrote: > On Tue, Dec 11, 2018 at 8:52 AM Arnd Bergmann wrote: > > > > For this use case, completions and semaphores are equivalent, > > but semaphores are an awkward interface that should generally > > be avoided, so use the completion instead. >

Re: [PATCH] powerpc: eeh_event: convert semaphore to completion

2018-12-10 Thread Oliver
On Tue, Dec 11, 2018 at 8:52 AM Arnd Bergmann wrote: > > For this use case, completions and semaphores are equivalent, > but semaphores are an awkward interface that should generally > be avoided, so use the completion instead. IIRC Sam has been reworking the locking used inside of EEH so this

[PATCH] powerpc: eeh_event: convert semaphore to completion

2018-12-10 Thread Arnd Bergmann
For this use case, completions and semaphores are equivalent, but semaphores are an awkward interface that should generally be avoided, so use the completion instead. Signed-off-by: Arnd Bergmann --- arch/powerpc/kernel/eeh_event.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-)