dm delay: support discard
authorMike Snitzer <snitzer@redhat.com>
Thu, 12 Aug 2010 03:14:13 +0000 (04:14 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Thu, 12 Aug 2010 03:14:13 +0000 (04:14 +0100)
Enable discard support for the delay target.

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-delay.c

index a91049e05219b4187ab1640b1b311577fb1c6432..baa11912cc94049bf966f9e62d3451fefd954971 100644 (file)
@@ -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;