Skip to content

Commit 2be6190

Browse files
AlvaroParkeraxboe
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
1 parent 761e5af commit 2be6190

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

block/blk-rq-qos.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ void rq_qos_wait(struct rq_wait *rqw, void *private_data,
263263
has_sleeper = !prepare_to_wait_exclusive(&rqw->wait, &data.wq,
264264
TASK_UNINTERRUPTIBLE);
265265
do {
266-
/* The memory barrier in set_task_state saves us here. */
266+
/* The memory barrier in set_current_state saves us here. */
267267
if (data.got_token)
268268
break;
269269
if (!has_sleeper && acquire_inflight_cb(rqw, private_data)) {

0 commit comments

Comments
 (0)