]> git.baikalelectronics.ru Git - kernel.git/commit
dm: disable WRITE SAME
authorMike Snitzer <snitzer@redhat.com>
Fri, 21 Dec 2012 20:23:30 +0000 (20:23 +0000)
committerAlasdair G Kergon <agk@redhat.com>
Fri, 21 Dec 2012 20:23:30 +0000 (20:23 +0000)
commitdd6ca0fcc38b2c8266acc577c5cc3945ec083ed7
tree00f9fa087a3bbae3fe55bda80f6b222512eea51a
parentd0fbe6fa743da0d85acc006b3e22f474f0392c4b
dm: disable WRITE SAME

WRITE SAME bios are not yet handled correctly by device-mapper so
disable their use on device-mapper devices by setting
max_write_same_sectors to zero.

As an example, a ciphertext device is incompatible because the data
gets changed according to the location at which it written and so the
dm crypt target cannot support it.

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Cc: stable@vger.kernel.org
Cc: Milan Broz <mbroz@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-table.c