]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
dm: disable WRITE SAME
authorMike Snitzer <snitzer@redhat.com>
Fri, 21 Dec 2012 20:23:30 +0000 (20:23 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Jan 2013 16:46:12 +0000 (08:46 -0800)
commiteb3b5cd16ff171d5a0f98feee8f4d088107c6334
treee2e21c071c80eda4d0f1b017b0d2bd672e741dd8
parent4f06f4b94023d3d1ec3a953db293d59878ac67b2
dm: disable WRITE SAME

commit c1a94672a830e01d58c7c7e8de530c3f136d6ff2 upstream.

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: Milan Broz <mbroz@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/md/dm-table.c