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]

 



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



[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