nvme: fix controller ioctl through ns_head
authorMinwoo Im <minwoo.im.dev@gmail.com>
Thu, 22 Apr 2021 08:04:07 +0000 (17:04 +0900)
committerChristoph Hellwig <hch@lst.de>
Tue, 4 May 2021 07:35:47 +0000 (09:35 +0200)
commit48145b62563a9ae1ad631d6b576c6b9a798fcbec
tree1bee31803fc163ea746ab27ed5ddb4abc4bb80bb
parentcd2c7545ae1beac3b6aae033c7f31193b3255946
nvme: fix controller ioctl through ns_head

In multipath case, we should consider namespace attachment with
controllers in a subsystem when we find out the live controller for the
namespace.  This patch manually reverted the commit 3557a4409701
("nvme: don't bother to look up a namespace for controller ioctls") with
few more updates to nvme_ns_head_chr_ioctl which has been newly updated.

Fixes: 3557a4409701 ("nvme: don't bother to look up a namespace for
controller ioctls")
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Minwoo Im <minwoo.im.dev@gmail.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/core.c
drivers/nvme/host/ioctl.c
drivers/nvme/host/nvme.h