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>
Fri, 4 Jun 2021 16:07:29 +0000 (12:07 -0400)
commit6842d264aa5205da338b6dcc6acfa2a6732558f1
treea4323e861f7191d86f8f48317f5e668b941e34bf
parentbab68499428ed934f0493ac74197ed6f36204260
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