OSDN Git Service

nvme-multipath: set bdi capabilities once
authorKeith Busch <kbusch@kernel.org>
Thu, 9 Apr 2020 16:09:04 +0000 (09:09 -0700)
committerJens Axboe <axboe@kernel.dk>
Sat, 9 May 2020 22:18:35 +0000 (16:18 -0600)
commitb2ce4d90690bd29ce5b554e203cd03682dd59697
treed060d5215ade2106c0940fdaaf8dcd558faa4cc1
parent0c284db7f23571f6428c44ca714f13a1fc5f70df
nvme-multipath: set bdi capabilities once

The queues' backing device info capabilities don't change with each
namespace revalidation. Set it only when each path's request_queue
is initially added to a multipath queue.

Signed-off-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/host/core.c
drivers/nvme/host/multipath.c