]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6f041dd62f578530dda8640250ab60b8d6589d9d
tree1bee31803fc163ea746ab27ed5ddb4abc4bb80bb
parent2ec5cf7a3af2a284c4a8ed128aa1055c367b4386
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 886d7616181e
("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: 886d7616181e ("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