Skip to content

Commit

Permalink
dm delay: support discard
Browse files Browse the repository at this point in the history
Enable discard support for the delay target.

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
  • Loading branch information
Mike Snitzer authored and Alasdair G Kergon committed Aug 12, 2010
1 parent f8facb6 commit 3fd5d48
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/md/dm-delay.c
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ static int delay_ctr(struct dm_target *ti, unsigned int argc, char **argv)
atomic_set(&dc->may_delay, 1);

ti->num_flush_requests = 1;
ti->num_discard_requests = 1;
ti->private = dc;
return 0;

Expand Down

0 comments on commit 3fd5d48

Please sign in to comment.