Re: [PATCH] block: call __bio_free in bio_endio

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 06/29/2017 02:24 PM, Christoph Hellwig wrote:
> On Thu, Jun 29, 2017 at 11:54:17AM -0700, Shaohua Li wrote:
>> bio_free isn't a good place to free cgroup info. There are a
>> lot of cases bio is allocated in special way (for example, in stack) and
>> never gets called by bio_put hence bio_free, we are leaking memory. This
>> patch moves the free to bio endio, which should be called anyway. The
>> __bio_free call in bio_free is kept, in case the bio never gets called
>> bio endio.
> 
> Jens already renamed __bio_free to bio_uninit in Linus' tree.
> 
> That being said I think we should just kill __bio_free once all
> the work is in.  But I think we should defer this post the
> initial pull for 4.12-rc to reduce the merge pain.

Yes, let's pick up that work after the existing for-4.13/block has
been merged upstream.

-- 
Jens Axboe




[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux