]> git.baikalelectronics.ru Git - kernel.git/commit
nvme: release namespace head reference on error
authorKeith Busch <kbusch@kernel.org>
Thu, 9 Apr 2020 16:09:00 +0000 (09:09 -0700)
committerJens Axboe <axboe@kernel.dk>
Sat, 9 May 2020 22:18:35 +0000 (16:18 -0600)
commitc05f34cd1f6f99a7814ea11648707d59c2d6a209
tree33953a2a563303dc834c7ee3a392aa7db3314373
parent9f8ab6adecb4a0cdb72b9a5276f727b5a38276de
nvme: release namespace head reference on error

If a namespace identification does not match the subsystem's head for
that NSID, release the reference that was taken when the matching head
was initially found.

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