From: jthumshirn@suse.de (Johannes Thumshirn) Date: Thu, 18 Feb 2016 10:39:27 +0100 Subject: [PATCH-4.5-v3 2/5] NVMe: Fix namespace removal deadlock In-Reply-To: <1455734215-20396-3-git-send-email-keith.busch@intel.com> References: <1455734215-20396-1-git-send-email-keith.busch@intel.com> <1455734215-20396-3-git-send-email-keith.busch@intel.com> Message-ID: <20160218093927.GS18134@c203.arch.suse.de> On Wed, Feb 17, 2016@11:36:52AM -0700, Keith Busch wrote: > This patch makes nvme namespace removal lockless. It is up to the caller > to ensure no active namespace scanning is occuring. > > The lockless removal allows the driver to cleanup a namespace > request_queue if the controller fails during removal. Previously this > could deadlock trying to acquire the namespace mutex in order to handle > such events. > > Signed-off-by: Keith Busch Reviewed-by: Johannes Thumshirn -- Johannes Thumshirn Storage jthumshirn at suse.de +49 911 74053 689 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 N?rnberg GF: Felix Imend?rffer, Jane Smithard, Graham Norton HRB 21284 (AG N?rnberg) Key fingerprint = EC38 9CAB C2C4 F25D 8600 D0D0 0393 969D 2D76 0850