On 04/29, Benjamin LaHaise wrote: > > On Tue, Apr 29, 2014 at 08:39:15PM +0200, Oleg Nesterov wrote: > > > > Kent, could you also explain kioctx->dead is atomic_t? This looks > > pointless? afaics atomic_ buys nothing in this case. > > If it wasn't atomic, it would need to be volatile.
Then ACCESS_ONCE() in aio_read_events() makes more sense. Although I can't say I understand why it is needed. Oleg. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/