nvme: check namespace head shared property
authorKeith Busch <kbusch@kernel.org>
Thu, 9 Apr 2020 16:09:02 +0000 (09:09 -0700)
committerJens Axboe <axboe@kernel.dk>
Sat, 9 May 2020 22:18:35 +0000 (16:18 -0600)
commit0c284db7f23571f6428c44ca714f13a1fc5f70df
tree0e295d9928b2faad3f48ab015843df4635c1bcce
parent9ad1927a3bc2735996ccc74e31b68a41ae9a3d33
nvme: check namespace head shared property

Reject a new shared namespace if a duplicate unshared namespace exists.

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/nvme.h