diff options
author | Alasdair G Kergon <agk@redhat.com> | 2005-07-12 18:53:01 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-07-12 19:19:10 -0400 |
commit | f6a80ea8ed44de0b19c42d41928be37a186a3f41 (patch) | |
tree | 2e565669d042e54576a4beaba03145ea35ec2145 /drivers/md/dm-mpath.c | |
parent | 3f603ed319d5120e883e64ac5967b2fc848fc43b (diff) |
[PATCH] device-mapper multipath: Barriers not supported
dm multipath will report barriers as not supported with this patch.
Signed-off-by: Lars Marowsky-Bree <lmb@suse.de>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
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.c | 6 |
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) { |