From: Matias Bjorling Date: Wed, 18 Dec 2013 12:41:44 +0000 (+0100) Subject: null_blk: warning on ignored submit_queues param X-Git-Tag: submit/tizen/20160607.132125~5404^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d15ee6b1a43afbe1a6cece3bd8d336a9d5cb7060;p=sdk%2Femulator%2Femulator-kernel.git 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 Signed-off-by: Jens Axboe --- diff --git a/drivers/block/null_blk.c b/drivers/block/null_blk.c index f0aeb2a..8f2e7c3 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;