Skip to contentSkip to conversation

block: replace always false argument with 'false'

PATCH In review Jens Axboe 2 participants 2 messages Nov 1, 2021 – Nov 2, 2021 Block layer

lore
Share & tools
lore

Jens Axboe

author maintainer
#0 lore raw

PATCH 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")

---

block/blk-mq.c +1 -1
index 4787d5b74aa3..8aed6cea3a34 100644
@@ -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
Reviewed-by on v1 1/1
#1 lore raw
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")

---

block/blk-mq.c +0 -0
index 4787d5b74aa3..8aed6cea3a34 100644

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;
Signature · 1 line
Ming