Skip to contentSkip to conversation

block: fix comment to use set_current_state

PATCH Applied [email protected] 2 participants 2 messages Sep 3, 2024 – Sep 4, 2024 Block layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 block: fix comment to use set_current_state

From: Alvaro Parker <[email protected]>

The explanatory comment used set_task_state instead of set_current_state which is the function actually used in the code.

---
 block/blk-rq-qos.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
block/blk-rq-qos.c +1 -1
index dd7310c94713..2cfb297d9a62 100644
@@ -263,7 +263,7 @@ void rq_qos_wait(struct rq_wait *rqw, void *private_data,
 	has_sleeper = !prepare_to_wait_exclusive(&rqw->wait, &data.wq,
 						 TASK_UNINTERRUPTIBLE);
 	do {
-		/* The memory barrier in set_task_state saves us here. */
+		/* The memory barrier in set_current_state saves us here. */
 		if (data.got_token)
 			break;
 		if (!has_sleeper && acquire_inflight_cb(rqw, private_data)) {
Signature · 1 line
2.46.0
maintainer Applied
#1 lore raw
Quoted 4 lines · On Tue, 03 Sep 2024 13:22:14 -0400, [email protected] wrote:

The explanatory comment used set_task_state instead of set_current_state which is the function actually used in the code.

Applied, thanks!

[1/1] block: fix comment to use set_current_state

      commit: 2be6190cd75cd2029ced5ccef057e15939f48c4a

Best regards,

Signature · 1 line
Jens Axboe