]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfb3ec7ea2f259615895d0e0652d59f78a3b41163
treec4fbd6e2b8003da5793927629ba9033a78d7cf0b
parent207a46123e279a158a80049e3e40d14dd31f664d
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