diff options
author | Damien Le Moal <dlemoal@kernel.org> | 2025-06-25 18:33:27 +0900 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2025-06-30 15:50:32 -0600 |
commit | 409f9287dab3b53bffe8d28d883a529028aa6a42 (patch) | |
tree | 09560c7acf305d488cc911601f3c80a78349547c /scripts/lib/abi/abi_regex.py | |
parent | e549663849e5bb3b985dc2d293069f0d9747ae72 (diff) |
dm: Check for forbidden splitting of zone write operations
DM targets must not split zone append and write operations using
dm_accept_partial_bio() as doing so is forbidden for zone append BIOs,
breaks zone append emulation using regular write BIOs and potentially
creates deadlock situations with queue freeze operations.
Modify dm_accept_partial_bio() to add missing BUG_ON() checks for all
these cases, that is, check that the BIO is a write or write zeroes
operation. This change packs all the zone related checks together under
a static_branch_unlikely(&zoned_enabled) and done only if the target is
a zoned device.
Fixes: f211268ed1f9 ("dm: Use the block layer zone append emulation")
Cc: stable@vger.kernel.org
Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Mikulas Patocka <mpatocka@redhat.com>
Link: https://lore.kernel.org/r/20250625093327.548866-6-dlemoal@kernel.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'scripts/lib/abi/abi_regex.py')
0 files changed, 0 insertions, 0 deletions