aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/block/null_blk.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/block/null_blk.c b/drivers/block/null_blk.c
index a2e69d26266d..a01d7f68fc77 100644
--- a/drivers/block/null_blk.c
+++ b/drivers/block/null_blk.c
@@ -622,6 +622,11 @@ static int __init null_init(void)
622 irqmode = NULL_IRQ_NONE; 622 irqmode = NULL_IRQ_NONE;
623 } 623 }
624#endif 624#endif
625 if (bs > PAGE_SIZE) {
626 pr_warn("null_blk: invalid block size\n");
627 pr_warn("null_blk: defaults block size to %lu\n", PAGE_SIZE);
628 bs = PAGE_SIZE;
629 }
625 630
626 if (queue_mode == NULL_Q_MQ && use_per_node_hctx) { 631 if (queue_mode == NULL_Q_MQ && use_per_node_hctx) {
627 if (submit_queues < nr_online_nodes) { 632 if (submit_queues < nr_online_nodes) {