summaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorDamien Le Moal <damien.lemoal@wdc.com>2021-05-25 23:24:58 +0200
committerMike Snitzer <snitzer@redhat.com>2021-06-04 18:07:33 +0200
commitbf14e2b250e4ff94392bbe87c523effdec687b0b (patch)
treecebe42a2e93b8e2ef4154d9f5c440c85b98785bb /block
parentdm: Introduce dm_report_zones() (diff)
downloadlinux-bf14e2b250e4ff94392bbe87c523effdec687b0b.tar.xz
linux-bf14e2b250e4ff94392bbe87c523effdec687b0b.zip
dm: Forbid requeue of writes to zones
A target map method requesting the requeue of a bio with DM_MAPIO_REQUEUE or completing it with DM_ENDIO_REQUEUE can cause unaligned write errors if the bio is a write operation targeting a sequential zone. If a zoned target request such a requeue, warn about it and kill the IO. The function dm_is_zone_write() is introduced to detect write operations to zoned targets. This change does not affect the target drivers supporting zoned devices and exposing a zoned device, namely dm-crypt, dm-linear and dm-flakey as none of these targets ever request a requeue. Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com> Reviewed-by: Hannes Reinecke <hare@suse.de> Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions