Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 4746
b: refs/heads/master
c: f6a80ea
h: refs/heads/master
v: v3
  • Loading branch information
Alasdair G Kergon authored and Linus Torvalds committed Jul 12, 2005
1 parent ec16b8b commit 4140a3a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3f603ed319d5120e883e64ac5967b2fc848fc43b
refs/heads/master: f6a80ea8ed44de0b19c42d41928be37a186a3f41
6 changes: 6 additions & 0 deletions trunk/drivers/md/dm-mpath.c
Original file line number Diff line number Diff line change
Expand Up @@ -765,6 +765,9 @@ static int multipath_map(struct dm_target *ti, struct bio *bio,
struct mpath_io *mpio;
struct multipath *m = (struct multipath *) ti->private;

if (bio_barrier(bio))
return -EOPNOTSUPP;

mpio = mempool_alloc(m->mpio_pool, GFP_NOIO);
dm_bio_record(&mpio->details, bio);

Expand Down Expand Up @@ -988,6 +991,9 @@ static int do_end_io(struct multipath *m, struct bio *bio,
if ((error == -EWOULDBLOCK) && bio_rw_ahead(bio))
return error;

if (error == -EOPNOTSUPP)
return error;

spin_lock(&m->lock);
if (!m->nr_valid_paths) {
if (!m->queue_if_no_path || m->suspended) {
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/md/dm-snap.c
Original file line number Diff line number Diff line change
Expand Up @@ -777,7 +777,7 @@ static int snapshot_map(struct dm_target *ti, struct bio *bio,

/* Full snapshots are not usable */
if (!s->valid)
return -1;
return -EIO;

/*
* Write to snapshot - higher level takes care of RW/RO
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/md/dm.c
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ static void __map_bio(struct dm_target *ti, struct bio *clone,
/* error the io and bail out */
struct dm_io *io = tio->io;
free_tio(tio->io->md, tio);
dec_pending(io, -EIO);
dec_pending(io, r);
bio_put(clone);
}
}
Expand Down

0 comments on commit 4140a3a

Please sign in to comment.