Re: [PATCH -v4 1/2] lib, Make gen_pool memory allocator lockless

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Peter Zijlstra
Date: Wednesday, November 17, 2010 - 3:49 am

On Wed, 2010-11-17 at 14:05 +0800, Huang Ying wrote:

If you can make it use a lockless list thing that's fine.

I'm not sure Andrew's CONFIG_ARCH_HAVE_NMI_SAFE_CMPXCHG makes much sense
for CONFIG_ARCH_HAVE_NMI=n though..

Anyway, make sure to consolidate net/rds/xlist.h and its users, having
two lockless lists is one too many.


But only if the platform has NMIs, otherwise its moot.
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH -v4 0/2] Lockless memory allocator and list, Huang Ying, (Mon Nov 15, 5:53 pm)
Re: [PATCH -v4 0/2] Lockless memory allocator and list, Peter Zijlstra, (Tue Nov 16, 4:49 am)
Re: [PATCH -v4 0/2] Lockless memory allocator and list, Linus Torvalds, (Tue Nov 16, 9:38 am)
Re: [PATCH -v4 0/2] Lockless memory allocator and list, Peter Zijlstra, (Tue Nov 16, 11:04 am)
Re: [PATCH -v4 1/2] lib, Make gen_pool memory allocator lo ..., Peter Zijlstra, (Wed Nov 17, 3:49 am)