dm table: fix write same support
authorMike Snitzer <snitzer@redhat.com>
Fri, 10 May 2013 13:37:16 +0000 (14:37 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Fri, 10 May 2013 13:37:16 +0000 (14:37 +0100)
commitdc019b21fb92d620a3b52ccecc135ac968a7c7ec
treebbe937861a7d4f22fcc08d36325ae5a921471f7e
parent502624bdad3dba45dfaacaf36b7d83e39e74b2d2
dm table: fix write same support

If device_not_write_same_capable() returns true then the iterate_devices
loop in dm_table_supports_write_same() should return false.

Reported-by: Bharata B Rao <bharata.rao@gmail.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Cc: stable@vger.kernel.org # v3.8+
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-table.c