block: replace always false argument with 'false'
Jens Axboe
maintainerPATCH 1/1 block: replace always false argument with 'false'
A previous commit fixed up the condition for doing direct issue, but that left the 'from_schedule' argument dead inside the branch. Replace it with 'false'.
Fixes ff1552232b36 ("blk-mq: don't issue request directly in case that current is to be blocked")
Signed-off-by Jens Axboe <[email protected]>
---
block/blk-mq.c +1 -1
@@ -2227,7 +2227,7 @@ void blk_mq_flush_plug_list(struct blk_plug *plug, bool from_schedule) plug->rq_count =0 ;if (!plug->multiple_queues && !plug->has_elevator && !from_schedule) { -blk_mq_plug_issue_direct (plug, from_schedule); +blk_mq_plug_issue_direct (plug, false);if (rq_list_empty (plug->mq_list))return ; }
Signature · 1 line
Jens Axboe
Quoted 14 lines · Jens Axboe
A previous commit fixed up the condition for doing direct issue, but that left the '
from_schedule' argument dead inside the branch. Replace it with 'false'.Fixes ff1552232b36 ("blk-mq: don't issue request directly in case that current is to be blocked")Signed-off-by Jens Axboe <[email protected]>---
block/blk-mq.c +0
-0
block/blk-mq.c void blk_mq_flush_plug_list(struct blk_plug *plug, bool from_schedule) · line 2232
Quoted 7 lines
block/blk-mq.c +1
-1@@ -2227,7 +2227,7 @@ void blk_mq_flush_plug_list(struct blk_plug *plug, bool from_schedule) plug->rq_count =0 ;if (!plug->multiple_queues && !plug->has_elevator && !from_schedule) { -blk_mq_plug_issue_direct (plug, from_schedule); +blk_mq_plug_issue_direct (plug, false);if (rq_list_empty (plug->mq_list))return ;
Reviewed-by Ming Lei <[email protected]>
Signature · 1 line
Ming