From: Mike Snitzer <[email-masked]>

Enable discard support for the delay target.

Signed-off-by: Mike Snitzer <[email-masked]>
Signed-off-by: Alasdair G Kergon <[email-masked]>

---
 drivers/md/dm-delay.c |    1 +
 1 file changed, 1 insertion(+)

Index: linux-2.6.35/drivers/md/dm-delay.c
===================================================================
--- linux-2.6.35.orig/drivers/md/dm-delay.c
+++ linux-2.6.35/drivers/md/dm-delay.c
@@ -198,6 +198,7 @@ out:
 	atomic_set(&dc->may_delay, 1);
 
 	ti->num_flush_requests = 1;
+	ti->num_discard_requests = 1;
 	ti->private = dc;
 	return 0;