aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-mpath.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md/dm-mpath.c')
-rw-r--r--drivers/md/dm-mpath.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/md/dm-mpath.c b/drivers/md/dm-mpath.c
index 0c1b8520ef86..84cdb700a247 100644
--- a/drivers/md/dm-mpath.c
+++ b/drivers/md/dm-mpath.c
@@ -765,6 +765,9 @@ static int multipath_map(struct dm_target *ti, struct bio *bio,
765 struct mpath_io *mpio; 765 struct mpath_io *mpio;
766 struct multipath *m = (struct multipath *) ti->private; 766 struct multipath *m = (struct multipath *) ti->private;
767 767
768 if (bio_barrier(bio))
769 return -EOPNOTSUPP;
770
768 mpio = mempool_alloc(m->mpio_pool, GFP_NOIO); 771 mpio = mempool_alloc(m->mpio_pool, GFP_NOIO);
769 dm_bio_record(&mpio->details, bio); 772 dm_bio_record(&mpio->details, bio);
770 773
@@ -988,6 +991,9 @@ static int do_end_io(struct multipath *m, struct bio *bio,
988 if ((error == -EWOULDBLOCK) && bio_rw_ahead(bio)) 991 if ((error == -EWOULDBLOCK) && bio_rw_ahead(bio))
989 return error; 992 return error;
990 993
994 if (error == -EOPNOTSUPP)
995 return error;
996
991 spin_lock(&m->lock); 997 spin_lock(&m->lock);
992 if (!m->nr_valid_paths) { 998 if (!m->nr_valid_paths) {
993 if (!m->queue_if_no_path || m->suspended) { 999 if (!m->queue_if_no_path || m->suspended) {