Commit 9423c65
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>1 parent af28172 commit 9423c65
1 file changed
+1
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1038 | 1038 | | |
1039 | 1039 | | |
1040 | 1040 | | |
1041 | | - | |
1042 | | - | |
1043 | | - | |
1044 | | - | |
1045 | | - | |
1046 | | - | |
1047 | 1041 | | |
1048 | 1042 | | |
1049 | 1043 | | |
| |||
1075 | 1069 | | |
1076 | 1070 | | |
1077 | 1071 | | |
1078 | | - | |
| 1072 | + | |
1079 | 1073 | | |
1080 | 1074 | | |
1081 | 1075 | | |
| |||
1447 | 1441 | | |
1448 | 1442 | | |
1449 | 1443 | | |
1450 | | - | |
1451 | | - | |
1452 | | - | |
1453 | | - | |
1454 | 1444 | | |
1455 | 1445 | | |
1456 | 1446 | | |
| |||
0 commit comments