Re: [PATCH 4/4] cpuset,mm: use rwlock to protect task->mempolicy and mems_allowed

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Nick Piggin
Date: Wednesday, March 10, 2010 - 10:30 pm

On Thu, Mar 11, 2010 at 01:04:33PM +0800, Miao Xie wrote:

Any problem with using a seqlock?

The other thing you could do is store a pointer to the nodemask, and
allocate a new nodemask when changing it, issue a smp_wmb(), and then
store the new pointer. Read side only needs a smp_read_barrier_depends()

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

Messages in current thread:
Re: [PATCH 4/4] cpuset,mm: use rwlock to protect task->mem ..., Nick Piggin, (Wed Mar 10, 10:30 pm)