summaryrefslogtreecommitdiff
path: root/drivers/md
diff options
context:
space:
mode:
authorMike Snitzer <snitzer@redhat.com>2010-08-12 04:14:13 +0100
committerAlasdair G Kergon <agk@redhat.com>2010-08-12 04:14:13 +0100
commit3fd5d48027181168ce85e8094b926aeb9f34c556 (patch)
tree740534f0992225e64b2874df296b6dff59111c0b /drivers/md
parentf8facb61b5095488a4d78fa78116ef4f4b82bc4d (diff)
downloadlinux-3.10-3fd5d48027181168ce85e8094b926aeb9f34c556.tar.gz
linux-3.10-3fd5d48027181168ce85e8094b926aeb9f34c556.tar.bz2
linux-3.10-3fd5d48027181168ce85e8094b926aeb9f34c556.zip
dm delay: support discard
Enable discard support for the delay target. Signed-off-by: Mike Snitzer <snitzer@redhat.com> Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Diffstat (limited to 'drivers/md')
-rw-r--r--drivers/md/dm-delay.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/md/dm-delay.c b/drivers/md/dm-delay.c
index a91049e0521..baa11912cc9 100644
--- a/drivers/md/dm-delay.c
+++ b/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;