]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
NVMe: Fix removal in case of active namespace list scanning method
authorSunad Bhandary <sunad.s@samsung.com>
Fri, 27 May 2016 10:29:43 +0000 (15:59 +0530)
committerJens Axboe <axboe@fb.com>
Wed, 8 Jun 2016 14:48:47 +0000 (08:48 -0600)
commit47b0e50ac724d97c392f771bb46f11d9d1575242
treed7b8a1a5029d1429760e8f90eda1a619a97c18c0
parentbd0fc2884ca4d1516da1aa5cf44385e24dc23c29
NVMe: Fix removal in case of active namespace list scanning method

In case of the active namespace list scanning method, a namespace that
is detached is not removed from the host if it was the last entry in
the list. Fix this by adding a scan to validate namespaces greater than
the value of prev.

This also handles the case of removing namespaces whose value exceed
the device's reported number of namespaces.

Signed-off-by: Sunad Bhandary S <sunad.s@samsung.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/nvme/host/core.c