Skip to content

Commit

Permalink
null_blk: warning on ignored submit_queues param
Browse files Browse the repository at this point in the history
Let the user know when the number of submission queues are being
ignored.

Signed-off-by: Matias Bjorling <m@bjorling.me>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
  • Loading branch information
Matias Bjorling authored and Jens Axboe committed Dec 19, 2013
1 parent 2d263a7 commit d15ee6b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions drivers/block/null_blk.c
Original file line number Diff line number Diff line change
Expand Up @@ -590,9 +590,12 @@ static int __init null_init(void)
}
#endif

if (queue_mode == NULL_Q_MQ && use_per_node_hctx)
if (queue_mode == NULL_Q_MQ && use_per_node_hctx) {
if (submit_queues > 0)
pr_warn("null_blk: submit_queues param is set to %u.",
nr_online_nodes);
submit_queues = nr_online_nodes;
else if (submit_queues > nr_cpu_ids)
} else if (submit_queues > nr_cpu_ids)
submit_queues = nr_cpu_ids;
else if (!submit_queues)
submit_queues = 1;
Expand Down

0 comments on commit d15ee6b

Please sign in to comment.