]> git.itanic.dy.fi Git - linux-stable/commit
block: reject invalid operation in submit_bio_noacct
authorChristoph Hellwig <hch@lst.de>
Thu, 21 Dec 2023 07:05:38 +0000 (08:05 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 26 Dec 2023 16:27:14 +0000 (09:27 -0700)
commit1c042f8d4bc342b7985b1de3d76836f1a1083b65
tree7f6457a48af3a16093d9752f18d0fd4ded6d4c14
parent8aabc11c8f4e0a57661a07f985ddc8a626ef9148
block: reject invalid operation in submit_bio_noacct

submit_bio_noacct allows completely invalid operations, or operations
that are not supported in the bio path.  Extent the existing switch
statement to rejcect all invalid types.

Move the code point for REQ_OP_ZONE_APPEND so that it's not right in the
middle of the zone management operations and the switch statement can
follow the numerical order of the operations.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20231221070538.1112446-1-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-core.c
include/linux/blk_types.h