Re: [PATCH 25/33] aio: use xchg() instead of completion_lock

2013-04-02 Thread Theodore Ts'o
On Thu, Mar 21, 2013 at 09:35:46AM -0700, Kent Overstreet wrote: > So, for sticking kiocb completions on the kioctx ringbuffer, we need a > lock - it unfortunately can't be lockless. > > When the kioctx is shared between threads on different cpus and the rate > of completions is high, this lock se

[PATCH 25/33] aio: use xchg() instead of completion_lock

2013-03-21 Thread Kent Overstreet
So, for sticking kiocb completions on the kioctx ringbuffer, we need a lock - it unfortunately can't be lockless. When the kioctx is shared between threads on different cpus and the rate of completions is high, this lock sees quite a bit of contention - in terms of cacheline contention it's the ho