loop: Don't bother validating blocksize
authorJohn Garry <john.g.garry@oracle.com>
Mon, 8 Jul 2024 09:16:51 +0000 (09:16 +0000)
committerJens Axboe <axboe@kernel.dk>
Tue, 9 Jul 2024 06:00:17 +0000 (00:00 -0600)
commit9423c653fe611070d875b374fb322dc44acce3f2
tree1d0e14a7ff1cab241a70e309f0d20072a2164d64
parentaf2817229158cea7960b9132e0a8c4470ebbfef5
loop: Don't bother validating blocksize

The block queue limits validation does this for us now.

The loop_configure() -> WARN_ON_ONCE() call is dropped, as an invalid
block size would trigger this now. We don't want userspace to be able to
directly trigger WARNs.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: John Garry <john.g.garry@oracle.com>
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-6-john.g.garry@oracle.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/loop.c