nvme: add proper discard setup for the multipath device
authorChristoph Hellwig <hch@lst.de>
Wed, 13 Mar 2019 17:55:07 +0000 (18:55 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 13 Mar 2019 18:57:34 +0000 (12:57 -0600)
commit2631857160ecbea04e54423f5053133fe2b6ea45
treec4fbd6e2b8003da5793927629ba9033a78d7cf0b
parentb1aafb35b45b1d734c670059c125a4ff111a47bd
nvme: add proper discard setup for the multipath device

Add a gendisk argument to nvme_config_discard 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>
Reported-by: Sagi Grimberg <sagi@grimberg.me>
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