[dm-devel] [PATCH 11/12] dm mpath: enable discard support

Mike Snitzer snitzer at redhat.com
Fri Jul 23 23:24:02 UTC 2010


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.

Signed-off-by: Mike Snitzer <snitzer at redhat.com>
Cc: Kiyoshi Ueda <k-ueda at ct.jp.nec.com>
---
 drivers/md/dm-mpath.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/md/dm-mpath.c b/drivers/md/dm-mpath.c
index 826bce7..ec2b43e 100644
--- a/drivers/md/dm-mpath.c
+++ b/drivers/md/dm-mpath.c
@@ -892,6 +892,7 @@ static int multipath_ctr(struct dm_target *ti, unsigned int argc,
 	}
 
 	ti->num_flush_requests = 1;
+	ti->num_discard_requests = 1;
 
 	return 0;
 
-- 
1.6.6.1




More information about the dm-devel mailing list