diff options
author | Christoph Hellwig <hch@lst.de> | 2017-04-05 19:21:05 +0200 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2017-04-08 11:25:38 -0600 |
commit | ac62d6208a7977107a47be4eb8566d6e5034b5f5 (patch) | |
tree | cac7e46e26b67193cefb333d9aad2f8e87ecfee7 /drivers/md/dm-mpath.c | |
parent | 0f5d690f7bf1b1a5354c61ac5b9d69a4329e218f (diff) | |
download | lwn-ac62d6208a7977107a47be4eb8566d6e5034b5f5.tar.gz lwn-ac62d6208a7977107a47be4eb8566d6e5034b5f5.zip |
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) ti->num_flush_bios = 1; ti->num_discard_bios = 1; ti->num_write_same_bios = 1; + ti->num_write_zeroes_bios = 1; if (m->queue_mode == DM_TYPE_BIO_BASED) ti->per_io_data_size = multipath_per_bio_data_size(); else |