]> git.baikalelectronics.ru Git - kernel.git/commit
md: disable WRITE SAME if it fails in underlayer disks
authorShaohua Li <shli@fb.com>
Tue, 14 Feb 2017 00:21:49 +0000 (16:21 -0800)
committerShaohua Li <shli@fb.com>
Tue, 14 Feb 2017 03:24:16 +0000 (19:24 -0800)
commit1c4ee132484b9314628561e994d7f28f54bd9f67
treec6bc82084038c13c7c694062b4092a1eb8485abe
parent8294afeb403cc171ccd524e650c14c7f2833f4c9
md: disable WRITE SAME if it fails in underlayer disks

This makes md do the same thing as dm for write same IO failure. Please
see 1e31b1b(dm: disable WRITE SAME if it fails) for details why we need
this.

We did a little bit different than dm. Instead of disabling writesame in
the first IO error, we disable it till next writesame IO coming after
the first IO error. This way we don't need to clone a bio.

Also reported here: https://bugzilla.kernel.org/show_bug.cgi?id=118581

Suggested-by: NeilBrown <neilb@suse.com>
Acked-by: NeilBrown <neilb@suse.com>
Signed-off-by: Shaohua Li <shli@fb.com>
drivers/md/linear.c
drivers/md/md.h
drivers/md/multipath.c
drivers/md/raid0.c