summaryrefslogtreecommitdiffstats
path: root/drivers/block/null_blk.c
diff options
context:
space:
mode:
authorMatias Bjorling <m@bjorling.me>2013-12-18 13:41:44 +0100
committerJens Axboe <axboe@kernel.dk>2013-12-19 16:09:43 +0100
commitd15ee6b1a43afbe1a6cece3bd8d336a9d5cb7060 (patch)
tree6a64d575af71bc7b83076f20ff1a60f33081c020 /drivers/block/null_blk.c
parentnull_blk: refactor init and init errors code paths (diff)
downloadlinux-d15ee6b1a43afbe1a6cece3bd8d336a9d5cb7060.tar.xz
linux-d15ee6b1a43afbe1a6cece3bd8d336a9d5cb7060.zip
null_blk: warning on ignored submit_queues param
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>
Diffstat (limited to 'drivers/block/null_blk.c')
-rw-r--r--drivers/block/null_blk.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/block/null_blk.c b/drivers/block/null_blk.c
index f0aeb2a7a9ca..8f2e7c330d6d 100644
--- a/drivers/block/null_blk.c
+++ b/drivers/block/null_blk.c
@@ -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;