]> git.baikalelectronics.ru Git - kernel.git/commit
dm: fix REQ_OP_ZONE_RESET bio handling
authorDamien Le Moal <damien.lemoal@wdc.com>
Mon, 8 May 2017 23:40:46 +0000 (16:40 -0700)
committerMike Snitzer <snitzer@redhat.com>
Mon, 19 Jun 2017 15:03:50 +0000 (11:03 -0400)
commit54e5a8ab84f174703e1aecacdc888f68fd887fd9
tree8af0f71814880a09000c3252263d42d1ebec4c1a
parent406cd9f5a6726ca644d8605cdfc701134a8c5a43
dm: fix REQ_OP_ZONE_RESET bio handling

The REQ_OP_ZONE_RESET bio has no payload and zero sectors.  Its position
is the only information used to indicate the zone to reset on the
device.  Due to its zero length, this bio is not cloned and sent to the
target through the non-flush case in __split_and_process_bio().  Add an
additional case in that function to call __split_and_process_non_flush()
without checking the clone info size.

Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Reviewed-by: Bart Van Assche <bart.vanassche@sandisk.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm.c