Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 209175
b: refs/heads/master
c: 959eb4e
h: refs/heads/master
i:
  209173: e282ccb
  209171: af4cd78
  209167: 8151a19
v: v3
  • Loading branch information
Mike Snitzer authored and Alasdair G Kergon committed Aug 12, 2010
1 parent 690e49a commit 53d94f8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7b76ec11fec40203836b488496d2df082d5b2022
refs/heads/master: 959eb4e5592cc0b0b07db0ca30d2b1efd790020f
10 changes: 10 additions & 0 deletions trunk/drivers/md/dm-mpath.c
Original file line number Diff line number Diff line change
Expand Up @@ -893,6 +893,7 @@ static int multipath_ctr(struct dm_target *ti, unsigned int argc,
}

ti->num_flush_requests = 1;
ti->num_discard_requests = 1;

return 0;

Expand Down Expand Up @@ -1272,6 +1273,15 @@ static int do_end_io(struct multipath *m, struct request *clone,
if (error == -EOPNOTSUPP)
return error;

if (clone->cmd_flags & REQ_DISCARD)
/*
* Pass all discard request failures up.
* FIXME: only fail_path if the discard failed due to a
* transport problem. This requires precise understanding
* of the underlying failure (e.g. the SCSI sense).
*/
return error;

if (mpio->pgpath)
fail_path(mpio->pgpath);

Expand Down

0 comments on commit 53d94f8

Please sign in to comment.