RE: [PATCH] block: remove redundant empty check of mq_list

2020-09-10 Thread Tianxianting
el.org; b...@vger.kernel.org Subject: Re: [PATCH] block: remove redundant empty check of mq_list On 9/9/20 12:48 AM, Xianting Tian wrote: > blk_mq_flush_plug_list() itself will do the empty check of mq_list, so > remove such check in blk_flush_plug_list(). > Actually normally mq_list

Re: [PATCH] block: remove redundant empty check of mq_list

2020-09-09 Thread Jens Axboe
On 9/9/20 12:48 AM, Xianting Tian wrote: > blk_mq_flush_plug_list() itself will do the empty check of mq_list, > so remove such check in blk_flush_plug_list(). > Actually normally mq_list is not empty when blk_flush_plug_list is > called. It's cheaper to do in the caller, instead of doing the func

[PATCH] block: remove redundant empty check of mq_list

2020-09-08 Thread Xianting Tian
blk_mq_flush_plug_list() itself will do the empty check of mq_list, so remove such check in blk_flush_plug_list(). Actually normally mq_list is not empty when blk_flush_plug_list is called. Signed-off-by: Xianting Tian --- block/blk-core.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)