From: Alvaro Parker Date: Tue, 3 Sep 2024 17:22:14 +0000 (-0400) Subject: block: fix comment to use set_current_state X-Git-Tag: v6.12-rc1~204^2~30 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2be6190cd75cd2029ced5ccef057e15939f48c4a;p=thirdparty%2Fkernel%2Flinux.git 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 Link: https://lore.kernel.org/r/20240903172214.520086-1-alparkerdf@gmail.com Signed-off-by: Jens Axboe --- diff --git a/block/blk-rq-qos.c b/block/blk-rq-qos.c index dd7310c94713c..2cfb297d9a627 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)) {