summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Snitzer <snitzer@redhat.com>2012-12-21 21:23:37 +0100
committerAlasdair G Kergon <agk@redhat.com>2012-12-21 21:23:37 +0100
commit4f0b70b0479101522b8645ddc1f5ee7137821db3 (patch)
treeb149c9faa420893ec5d35a227d9de5bd8cfde461
parentdm: add WRITE SAME support (diff)
downloadlinux-4f0b70b0479101522b8645ddc1f5ee7137821db3.tar.xz
linux-4f0b70b0479101522b8645ddc1f5ee7137821db3.zip
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 '')
-rw-r--r--drivers/md/dm-linear.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/md/dm-linear.c b/drivers/md/dm-linear.c
index 1bf19a93eef0..82222a8cf750 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)
ti->num_flush_requests = 1;
ti->num_discard_requests = 1;
+ ti->num_write_same_requests = 1;
ti->private = lc;
return 0;
@@ -155,7 +156,7 @@ static int linear_iterate_devices(struct dm_target *ti,
static struct target_type linear_target = {
.name = "linear",
- .version = {1, 1, 0},
+ .version = {1, 2, 0},
.module = THIS_MODULE,
.ctr = linear_ctr,
.dtr = linear_dtr,