Skip to content

Commit fa94ba8

Browse files
minwooimaxboe
authored andcommitted
blk-mq: fix msec comment from micro to milli seconds
Delay to wait for queue running is milli second unit which is passed to delayed work via msecs_to_jiffies() which is to convert milliseconds to jiffies. Signed-off-by: Minwoo Im <[email protected]> Reviewed-by: John Garry <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
1 parent d220a21 commit fa94ba8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

block/blk-mq.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1594,7 +1594,7 @@ static int blk_mq_hctx_next_cpu(struct blk_mq_hw_ctx *hctx)
15941594
* __blk_mq_delay_run_hw_queue - Run (or schedule to run) a hardware queue.
15951595
* @hctx: Pointer to the hardware queue to run.
15961596
* @async: If we want to run the queue asynchronously.
1597-
* @msecs: Microseconds of delay to wait before running the queue.
1597+
* @msecs: Milliseconds of delay to wait before running the queue.
15981598
*
15991599
* If !@async, try to run the queue now. Else, run the queue asynchronously and
16001600
* with a delay of @msecs.
@@ -1623,7 +1623,7 @@ static void __blk_mq_delay_run_hw_queue(struct blk_mq_hw_ctx *hctx, bool async,
16231623
/**
16241624
* blk_mq_delay_run_hw_queue - Run a hardware queue asynchronously.
16251625
* @hctx: Pointer to the hardware queue to run.
1626-
* @msecs: Microseconds of delay to wait before running the queue.
1626+
* @msecs: Milliseconds of delay to wait before running the queue.
16271627
*
16281628
* Run a hardware queue asynchronously with a delay of @msecs.
16291629
*/
@@ -1687,7 +1687,7 @@ EXPORT_SYMBOL(blk_mq_run_hw_queues);
16871687
/**
16881688
* blk_mq_delay_run_hw_queues - Run all hardware queues asynchronously.
16891689
* @q: Pointer to the request queue to run.
1690-
* @msecs: Microseconds of delay to wait before running the queues.
1690+
* @msecs: Milliseconds of delay to wait before running the queues.
16911691
*/
16921692
void blk_mq_delay_run_hw_queues(struct request_queue *q, unsigned long msecs)
16931693
{

0 commit comments

Comments
 (0)