diff options
author | John Garry <[email protected]> | 2024-07-08 09:16:49 +0000 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2024-07-09 00:00:17 -0600 |
commit | addc3a68de850fa25dcf937705e721d8eec22470 (patch) | |
tree | a115e0646bea5afef683767eb2c9ee3bb2588437 | |
parent | fe3d508ba95bc63adba661355115be340275c0d1 (diff) |
null_blk: Don't bother validating blocksize
The block queue limits validation does this for us now.
Reviewed-by: Christoph Hellwig <[email protected]>
Signed-off-by: John Garry <[email protected]>
Reviewed-by: Zhu Yanjun <[email protected]>
Reviewed-by: Damien Le Moal <[email protected]>
Acked-by: Michael S. Tsirkin <[email protected]>
Reviewed-by: Stefan Hajnoczi <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
-rw-r--r-- | drivers/block/null_blk/main.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/block/null_blk/main.c b/drivers/block/null_blk/main.c index 9d0f6da77601..2f0431e42c49 100644 --- a/drivers/block/null_blk/main.c +++ b/drivers/block/null_blk/main.c @@ -1831,9 +1831,6 @@ static int null_validate_conf(struct nullb_device *dev) dev->queue_mode = NULL_Q_MQ; } - if (blk_validate_block_size(dev->blocksize)) - return -EINVAL; - if (dev->use_per_node_hctx) { if (dev->submit_queues != nr_online_nodes) dev->submit_queues = nr_online_nodes; |