nvme: add proper write zeroes setup for the multipath device
authorChristoph Hellwig <hch@lst.de>
Wed, 13 Mar 2019 17:55:08 +0000 (18:55 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 13 Mar 2019 18:57:34 +0000 (12:57 -0600)
commit9f0916ab932f676c042d4592a235a895847484f2
treefc3c1b34a3926a513b423538dcf2de0341c11a1d
parent2631857160ecbea04e54423f5053133fe2b6ea45
nvme: add proper write zeroes setup for the multipath device

Add a gendisk argument to nvme_config_write_zeroes so that the call to
nvme_update_disk_info for the multipath device node updates the
proper request_queue.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Keith Busch <keith.busch@intel.com>
Reviewed-by: Max Gurtovoy <maxg@mellanox.com>
Tested-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/host/core.c