]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
null_blk: Don't bother validating blocksize
authorJohn Garry <john.g.garry@oracle.com>
Mon, 8 Jul 2024 09:16:49 +0000 (09:16 +0000)
committerJens Axboe <axboe@kernel.dk>
Tue, 9 Jul 2024 06:00:17 +0000 (00:00 -0600)
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>
drivers/block/null_blk/main.c

index 9d0f6da77601b456dc1d348747bebd6653c6a2ef..2f0431e42c494d98f01d6c1741a1e865f33426b8 100644 (file)
@@ -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;