[PATCH-4.5-v3 1/5] NVMe: Add controller removing state
Christoph Hellwig
hch at infradead.org
Wed Feb 17 20:09:18 PST 2016
On Wed, Feb 17, 2016 at 11:36:51AM -0700, Keith Busch wrote:
> The patch is preparing for reducing the scope of the namespace mutex. It
> adds a removing state the namespace scan work uses to know if it is safe
> to proceed. The scan work is flushed after setting the device state so
> the removal path can safely walk the namespace list without locking it.
>
> Signed-off-by: Keith Busch <keith.busch at intel.com>
Looks fine, although the flushing / list access magic could relaly
use a comment describing it in the source code.
More information about the Linux-nvme
mailing list