diff options
author | Mike Snitzer <snitzer@redhat.com> | 2012-12-21 15:23:37 -0500 |
---|---|---|
committer | Alasdair G Kergon <agk@redhat.com> | 2012-12-21 15:23:37 -0500 |
commit | 4f0b70b0479101522b8645ddc1f5ee7137821db3 (patch) | |
tree | b149c9faa420893ec5d35a227d9de5bd8cfde461 /drivers/md/dm-linear.c | |
parent | 23508a96cd2e857d57044a2ed7d305f2d9daf441 (diff) |
dm linear: add WRITE SAME support
The linear target can already support WRITE SAME requests so signal
this by setting num_write_same_requests to 1.
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Diffstat (limited to 'drivers/md/dm-linear.c')
-rw-r--r-- | drivers/md/dm-linear.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/md/dm-linear.c b/drivers/md/dm-linear.c index 1bf19a93eef..82222a8cf75 100644 --- a/drivers/md/dm-linear.c +++ b/drivers/md/dm-linear.c | |||
@@ -55,6 +55,7 @@ static int linear_ctr(struct dm_target *ti, unsigned int argc, char **argv) | |||
55 | 55 | ||
56 | ti->num_flush_requests = 1; | 56 | ti->num_flush_requests = 1; |
57 | ti->num_discard_requests = 1; | 57 | ti->num_discard_requests = 1; |
58 | ti->num_write_same_requests = 1; | ||
58 | ti->private = lc; | 59 | ti->private = lc; |
59 | return 0; | 60 | return 0; |
60 | 61 | ||
@@ -155,7 +156,7 @@ static int linear_iterate_devices(struct dm_target *ti, | |||
155 | 156 | ||
156 | static struct target_type linear_target = { | 157 | static struct target_type linear_target = { |
157 | .name = "linear", | 158 | .name = "linear", |
158 | .version = {1, 1, 0}, | 159 | .version = {1, 2, 0}, |
159 | .module = THIS_MODULE, | 160 | .module = THIS_MODULE, |
160 | .ctr = linear_ctr, | 161 | .ctr = linear_ctr, |
161 | .dtr = linear_dtr, | 162 | .dtr = linear_dtr, |