[PATCH] aio: ensure access to ctx->ring_pages is correctly serialised

From: Benjamin LaHaise
Date: Fri Mar 21 2014 - 14:35:20 EST


Hi all,

Based on the issues reported by Tang and Gu, I've come up with the an
alternative fix that avoids adding additional locking in the event read
code path. The fix is to take the ring_lock mutex during page migration,
which is already used to syncronize event readers and thus does not add
any new locking requirements in aio_read_events_ring(). I've dropped
the patches from Tang and Gu as a result. This patch is now in my
git://git.kvack.org/~bcrl/aio-next.git tree and will be sent to Linus
once a few other people chime in with their reviews of this change.
Please review Tang, Gu. Thanks!

-ben
--
"Thought is the essence of where you are now."