Re: [PATCH] block: use put_io_context_active() to disassociate bio from a task

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

 



Hello,

On Fri, Mar 03, 2017 at 03:01:10PM +0800, Hou Tao wrote:
> bio_associate_current() invokes get_io_context_active() to tell
> CFQ scheduler that the current io_context is still issuing IOs
> by increasing active_ref. When the bio is done, we also need
> to invoke put_io_context_active() to decrease active_ref else
> the associated io_context will always be active.
> 
> Signed-off-by: Hou Tao <houtao1@xxxxxxxxxx>

Can you please explain how you noticed issue and verified the patch?
Also, the patch will need the following.

 Fixes: 852c788f8365 ("block: implement bio_associate_current()")
 Cc: stable@xxxxxxxxxxxxxxx # v3.5+

I think the failure mode isn't severe.  We'll be carrying around ioc's
longer than necessary but that's about it.  I wonder whether the logic
can be simplified in general.  Anyways, please feel free to add

 Acked-by: Tejun Heo <tj@xxxxxxxxxx>

Thanks.

-- 
tejun



[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