Skip to content
Commit 47b0e50a authored by Sunad Bhandary's avatar Sunad Bhandary Committed by Jens Axboe
Browse files

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: default avatarSunad Bhandary S <sunad.s@samsung.com>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarJens Axboe <axboe@fb.com>
parent bd0fc288
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment