From mboxrd@z Thu Jan 1 00:00:00 1970 From: keith.busch@intel.com (Keith Busch) Date: Mon, 18 Apr 2016 14:57:57 +0000 Subject: Namespace removal deadlock in case of namespace detach command In-Reply-To: <168786720.663071460980851178.JavaMail.weblogic@ep2mlwas04b> References: <168786720.663071460980851178.JavaMail.weblogic@ep2mlwas04b> Message-ID: <20160418145756.GA4640@localhost.localdomain> On Mon, Apr 18, 2016@12:00:51PM +0000, Sunad Bhandary S wrote: > On receipt of a namespace attribute changed AER, we acquire the namespace mutex lock before proceeding to scan and validate the namespace list. > In case of namespace detach/delete command, nvme_ns_remove function deadlocks trying to acquire the already held lock. You're right, thanks for the catch. Do you have a fix, or should we propose one?