diff options
author | Alvaro Parker <alparkerdf@gmail.com> | 2024-09-03 13:22:14 -0400 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2024-09-04 07:27:19 -0600 |
commit | 2be6190cd75cd2029ced5ccef057e15939f48c4a (patch) | |
tree | 2b7a3f6abdda7c3cfbbc3f0ddc56b01ca186ea14 /block | |
parent | 761e5afb6ddbfd4c0523ec294b7d24f3652912c7 (diff) |
block: fix comment to use set_current_state
The explanatory comment used `set_task_state` instead of
`set_current_state` which is the function actually used in the code.
Signed-off-by: Alvaro Parker <alparkerdf@gmail.com>
Link: https://lore.kernel.org/r/20240903172214.520086-1-alparkerdf@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block')
-rw-r--r-- | block/blk-rq-qos.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk-rq-qos.c b/block/blk-rq-qos.c index dd7310c94713..2cfb297d9a62 100644 --- a/block/blk-rq-qos.c +++ b/block/blk-rq-qos.c @@ -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)) { |