lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Thu, 19 Mar 2015 15:43:10 -0600
From:	Jens Axboe <>
To:	Tejun Heo <>, Jeff Moyer <>
CC:, Benjamin LaHaise <>,
Subject: Re: serial percpu_ref draining in exit_aio()

On 03/19/2015 03:27 PM, Jens Axboe wrote:
> On 03/19/2015 03:00 PM, Tejun Heo wrote:
>> On Thu, Mar 19, 2015 at 04:58:33PM -0400, Jeff Moyer wrote:
>>> Do you really want to do memory allocation in the exit path?  That
>>> sounds like a bad idea to me.  (Of course, now you're going to point out
>>> all the places that currently happens, right?  ;-)
>> I think we just need a counter there - let everyone count down as they
>> exit and the last one trigger the completion, no?
> Yeah that's a good point, that'd be cleaner too. I'll change it and test
> that.

Here's a cleaner variant that pairs the completion even with an atomic 
count. Works for me as well.

Jens Axboe

View attachment "aio-exit-parallel-v2.patch" of type "text/x-patch" (3559 bytes)

Powered by blists - more mailing lists