commit | 188c3568f814fea965947ed24739987ba9c5a87e | [log] [tgz] |
---|---|---|
author | Keith Busch <keith.busch@intel.com> | Thu Oct 01 17:14:10 2015 -0600 |
committer | Jens Axboe <axboe@fb.com> | Fri Oct 09 10:40:36 2015 -0600 |
tree | 553e44c9332afce5890e573785ce9887cd01a7ac | |
parent | 54ef2b96879334caf8803fdd93b4c556d709d6fd [diff] |
NVMe: Reference count open namespaces Dynamic namespace attachment means the namespace may be removed at any time, so the namespace reference count can not be tied to the device reference count. This fixes a NULL dereference if an opened namespace is detached from a controller. Signed-off-by: Keith Busch <keith.busch@intel.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@fb.com>