diff options
author | Christoph Hellwig <hch@lst.de> | 2017-04-05 13:21:05 -0400 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2017-04-08 13:25:38 -0400 |
commit | ac62d6208a7977107a47be4eb8566d6e5034b5f5 (patch) | |
tree | cac7e46e26b67193cefb333d9aad2f8e87ecfee7 /drivers/md/dm-mpath.c | |
parent | 0f5d690f7bf1b1a5354c61ac5b9d69a4329e218f (diff) |
dm: support REQ_OP_WRITE_ZEROES
Copy & paste from the REQ_OP_WRITE_SAME code.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'drivers/md/dm-mpath.c')
-rw-r--r-- | drivers/md/dm-mpath.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/md/dm-mpath.c b/drivers/md/dm-mpath.c index 7f223dbed49f..ab55955ed704 100644 --- a/drivers/md/dm-mpath.c +++ b/drivers/md/dm-mpath.c | |||
@@ -1103,6 +1103,7 @@ static int multipath_ctr(struct dm_target *ti, unsigned argc, char **argv) | |||
1103 | ti->num_flush_bios = 1; | 1103 | ti->num_flush_bios = 1; |
1104 | ti->num_discard_bios = 1; | 1104 | ti->num_discard_bios = 1; |
1105 | ti->num_write_same_bios = 1; | 1105 | ti->num_write_same_bios = 1; |
1106 | ti->num_write_zeroes_bios = 1; | ||
1106 | if (m->queue_mode == DM_TYPE_BIO_BASED) | 1107 | if (m->queue_mode == DM_TYPE_BIO_BASED) |
1107 | ti->per_io_data_size = multipath_per_bio_data_size(); | 1108 | ti->per_io_data_size = multipath_per_bio_data_size(); |
1108 | else | 1109 | else |