diff options
author | Mikulas Patocka <mpatocka@redhat.com> | 2015-02-12 16:09:20 +0100 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2015-02-14 01:50:46 +0100 |
commit | f2ed51ac64611d717d1917820a01930174c2f236 (patch) | |
tree | 726e3cf40cb8f128e0b9807f05fc255795c4454d /drivers/pnp | |
parent | dm space map disk: fix sm_disk_count_is_more_than_one() (diff) | |
download | linux-f2ed51ac64611d717d1917820a01930174c2f236.tar.xz linux-f2ed51ac64611d717d1917820a01930174c2f236.zip |
dm mirror: do not degrade the mirror on discard error
It may be possible that a device claims discard support but it rejects
discards with -EOPNOTSUPP. It happens when using loopback on ext2/ext3
filesystem driven by the ext4 driver. It may also happen if the
underlying devices are moved from one disk on another.
If discard error happens, we reject the bio with -EOPNOTSUPP, but we do
not degrade the array.
This patch fixes failed test shell/lvconvert-repair-transient.sh in the
lvm2 testsuite if the testsuite is extracted on an ext2 or ext3
filesystem and it is being driven by the ext4 driver.
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Cc: stable@vger.kernel.org
Diffstat (limited to 'drivers/pnp')
0 files changed, 0 insertions, 0 deletions