]> bbs.cooldavid.org Git - net-next-2.6.git/commit
dm mpath: support discard
authorMike Snitzer <snitzer@redhat.com>
Thu, 12 Aug 2010 03:14:32 +0000 (04:14 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Thu, 12 Aug 2010 03:14:32 +0000 (04:14 +0100)
commit959eb4e5592cc0b0b07db0ca30d2b1efd790020f
tree564a22942512825ca1f466ae9d18ffe9fd7bf1fb
parent7b76ec11fec40203836b488496d2df082d5b2022
dm mpath: support discard

Enable discard support in the DM multipath target.

This discard support depends on a few discard-specific fixes to the
block layer's request stacking driver methods.

Discard requests are optional so don't allow a failed discard to trigger
path failures.  If there is a real problem with a given path the
barriers associated with the discard (either before or after the
discard) will cause path failure.  That said, unconditionally passing
discard failures up the stack is not ideal.  This must be fixed once DM
has more information about the nature of the underlying storage failure.

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Cc: Kiyoshi Ueda <k-ueda@ct.jp.nec.com>
drivers/md/dm-mpath.c