Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 323213
b: refs/heads/master
c: 7ba10aa
h: refs/heads/master
i:
  323211: 461378e
v: v3
  • Loading branch information
Mike Snitzer authored and Alasdair G Kergon committed Sep 26, 2012
1 parent a93dcb8 commit 0e33c23
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 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: 307615a26e95406c42c95916a66ba50434567e0f
refs/heads/master: 7ba10aa6fbac7158a50bec142132b04bc480bb29
11 changes: 7 additions & 4 deletions trunk/drivers/md/dm-mpath.c
Original file line number Diff line number Diff line change
Expand Up @@ -1555,6 +1555,7 @@ static int multipath_ioctl(struct dm_target *ti, unsigned int cmd,
unsigned long arg)
{
struct multipath *m = ti->private;
struct pgpath *pgpath;
struct block_device *bdev;
fmode_t mode;
unsigned long flags;
Expand All @@ -1570,12 +1571,14 @@ static int multipath_ioctl(struct dm_target *ti, unsigned int cmd,
if (!m->current_pgpath)
__choose_pgpath(m, 0);

if (m->current_pgpath) {
bdev = m->current_pgpath->path.dev->bdev;
mode = m->current_pgpath->path.dev->mode;
pgpath = m->current_pgpath;

if (pgpath) {
bdev = pgpath->path.dev->bdev;
mode = pgpath->path.dev->mode;
}

if (m->queue_io)
if ((pgpath && m->queue_io) || (!pgpath && m->queue_if_no_path))
r = -EAGAIN;
else if (!bdev)
r = -EIO;
Expand Down

0 comments on commit 0e33c23

Please sign in to comment.