From: Lars Marowsky-Bree Date: Wed, 8 Jun 2005 22:50:31 +0000 (-0700) Subject: [PATCH] dm: Handle READA requests in dm-mpath.c X-Git-Tag: v2.6.12~55 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4f58802fae8a51d9e79454746584175c14f84519;p=platform%2Fkernel%2Flinux-exynos.git [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 Acked-by: Jens Axboe Signed-off-by: Lars Marowsky-Bree Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/md/dm-mpath.c b/drivers/md/dm-mpath.c index 1e97b3c..0c1b852 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) {