summaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-mpath.c
diff options
context:
space:
mode:
authorLars Marowsky-Bree2005-06-09 00:50:31 +0200
committerLinus Torvalds2005-06-09 01:21:14 +0200
commit4f58802fae8a51d9e79454746584175c14f84519 (patch)
tree022533cfacde17b54e8f9b7ac3f12c82ed1c48be /drivers/md/dm-mpath.c
parent[PATCH] ia64: fix floating-point preemption problem (diff)
downloadkernel-qcow2-linux-4f58802fae8a51d9e79454746584175c14f84519.tar.gz
kernel-qcow2-linux-4f58802fae8a51d9e79454746584175c14f84519.tar.xz
kernel-qcow2-linux-4f58802fae8a51d9e79454746584175c14f84519.zip
[PATCH] dm: Handle READA requests in dm-mpath.c
READA errors failing with EWOULDBLOCK/EAGAIN do not constitute a valid reason for failing the path; this lead to erratic errors on DM multipath devices. This error can be safely propagated upwards without failing the path. Acked-by: Kevin Corry <kevcorry@us.ibm.com> Acked-by: Jens Axboe <axboe@suse.de> Signed-off-by: Lars Marowsky-Bree <lmb@suse.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/md/dm-mpath.c')
-rw-r--r--drivers/md/dm-mpath.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/md/dm-mpath.c b/drivers/md/dm-mpath.c
index 1e97b3c12bd5..0c1b8520ef86 100644
--- a/drivers/md/dm-mpath.c
+++ b/drivers/md/dm-mpath.c
@@ -985,6 +985,9 @@ static int do_end_io(struct multipath *m, struct bio *bio,
if (!error)
return 0; /* I/O complete */
+ if ((error == -EWOULDBLOCK) && bio_rw_ahead(bio))
+ return error;
+
spin_lock(&m->lock);
if (!m->nr_valid_paths) {
if (!m->queue_if_no_path || m->suspended) {