提交 d15ee6b1 编写于 作者: M Matias Bjorling 提交者: Jens Axboe

null_blk: warning on ignored submit_queues param

Let the user know when the number of submission queues are being
ignored.
Signed-off-by: NMatias Bjorling <m@bjorling.me>
Signed-off-by: NJens Axboe <axboe@kernel.dk>
上级 2d263a78
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册