]> git.baikalelectronics.ru Git - kernel.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>
Fri, 4 Jun 2021 16:07:29 +0000 (12:07 -0400)
commit2de9b9c049c299d499dde083f0cadea43c59ace8
treea4323e861f7191d86f8f48317f5e668b941e34bf
parent82bcda11650da9663e02b99d4f9a4264c4f61d8f
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