]> git.baikalelectronics.ru Git - kernel.git/commit
nvme: always search for namespace head
authorKeith Busch <kbusch@kernel.org>
Thu, 9 Apr 2020 16:09:01 +0000 (09:09 -0700)
committerJens Axboe <axboe@kernel.dk>
Sat, 9 May 2020 22:18:35 +0000 (16:18 -0600)
commit9dd6c73399bcc0d8d02c7e7dae4b464f00ea379c
tree0fbab46d113aa9c8218021378d01a0ad7e48d5b3
parenteed0be0a7b7e8cf428e4e81b71d2aef704b78bfb
nvme: always search for namespace head

Even if a namespace reports it is not capable of sharing, search the
subsystem for a matching namespace head. If found, the driver should
reject that namespace since it's coming from an invalid configuration.

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