nvme: simplify nvme_open
authorChristoph Hellwig <hch@lst.de>
Wed, 18 Oct 2017 11:22:00 +0000 (13:22 +0200)
committerChristoph Hellwig <hch@lst.de>
Fri, 27 Oct 2017 06:03:31 +0000 (09:03 +0300)
commitc6424a90da446cff6c67be06767fc0d0be787110
treefe842372c8f6fea4b651d420ee08c8d6c1ac9a60
parent2dd4122854f697afc777582d18548dded03ce5dd
nvme: simplify nvme_open

Now that we are protected against lookup vs free races for the namespace
by using kref_get_unless_zero we don't need the hack of NULLing out the
disk private data during removal.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
drivers/nvme/host/core.c