Re: [PATCH] aio: fix a use after free (and fix freeze protection of aio writes)

From: Christoph Hellwig
Date: Mon Oct 17 2016 - 16:05:10 EST

On Mon, Oct 17, 2016 at 04:04:00PM -0400, Jeff Moyer wrote:
> >> Could we just change percpu_rw_semaphore->read_count to be a signed
> >> integer? The down_write path sums up the counters from all cpus...
> >
> > To what point?
> Duh, nevermind. You're right, it should work as-is.

Ok, thanks. That also explains why I didn't see any splat in