Re: [PATCH 1/4] block: have plug stored requests hold references to the queue

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

 



On 11/4/21 3:01 AM, Christoph Hellwig wrote:
>> @@ -1643,7 +1643,7 @@ void blk_flush_plug(struct blk_plug *plug, bool from_schedule)
>>  		flush_plug_callbacks(plug, from_schedule);
>>  	if (!rq_list_empty(plug->mq_list))
>>  		blk_mq_flush_plug_list(plug, from_schedule);
>> -	if (unlikely(!from_schedule && plug->cached_rq))
>> +	if (unlikely(!rq_list_empty(plug->cached_rq)))
> 
> How is this related to the rest of the patch?

With references to the requests, flushing them even from a schedule
unplug condition is a lot saner in case someone is waiting on the
queue to quiesce.

-- 
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