Skip to content

Commit addc3a6

Browse files
johnpgarryaxboe
authored andcommitted
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]>
1 parent fe3d508 commit addc3a6

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drivers/block/null_blk/main.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1831,9 +1831,6 @@ static int null_validate_conf(struct nullb_device *dev)
18311831
dev->queue_mode = NULL_Q_MQ;
18321832
}
18331833

1834-
if (blk_validate_block_size(dev->blocksize))
1835-
return -EINVAL;
1836-
18371834
if (dev->use_per_node_hctx) {
18381835
if (dev->submit_queues != nr_online_nodes)
18391836
dev->submit_queues = nr_online_nodes;

0 commit comments

Comments
 (0)