[PATCHv2 2/2] NVMe: Shutdown fixes

Keith Busch keith.busch at intel.com
Tue Nov 24 12:57:57 PST 2015


On Tue, Nov 24, 2015 at 01:26:12PM -0700, Jens Axboe wrote:
> On 11/24/2015 01:20 PM, Keith Busch wrote:
> >Sure, I'm all for a better solution. We just need to prevent two threads
> >from hitting the same controller registers, and return when queues are
> >cleared. Is there a better way to control this?
> >
> >The driver's queue structures are already protected, but the existing
> >implementation allows one thread to pass the first that's waiting for
> >orderly queue deletion.
> 
> Just use a mutex? Check shutdown state after having held the lock,
> exit if we don't need to do anything.

Got it, thanks. Will send an update.



More information about the Linux-nvme mailing list