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 <hch@lst.de> Signed-off-by: John Garry <john.g.garry@oracle.com> Reviewed-by: Zhu Yanjun <yanjun.zhu@linux.dev> Reviewed-by: Damien Le Moal <dlemoal@kernel.org> Acked-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Link: https://lore.kernel.org/r/20240708091651.177447-4-john.g.garry@oracle.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
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)