]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dm: Fix dm_accept_partial_bio() relative to zone management commands
authorDamien Le Moal <damien.lemoal@wdc.com>
Tue, 25 May 2021 21:24:54 +0000 (06:24 +0900)
committerMike Snitzer <snitzer@redhat.com>
Wed, 2 Jun 2021 18:03:53 +0000 (14:03 -0400)
commit88afb505e0547b54c20d391003a5d94d0085b77a
tree1ee600c3a17fe9a1d60b183699d9d25fed421e65
parente086adffd5112597c801933d1da7b6edb2bb9217
dm: Fix dm_accept_partial_bio() relative to zone management commands

Fix dm_accept_partial_bio() to actually check that zone management
commands are not passed as explained in the function documentation
comment. Also, since a zone append operation cannot be split, add
REQ_OP_ZONE_APPEND as a forbidden command.

White lines are added around the group of BUG_ON() calls to make the
code more legible.

Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm.c