Namespace removal deadlock in case of namespace detach command
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.
Thanks and Regards,
Sunad
Quoted 2 lines · Sunad Bhandary S
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_removefunction 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?
Quoted 6 lines · Keith Busch
Quoted 2 lines · Sunad Bhandary S
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_removefunction 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?
We have a fix in nvme over fabrics tree.
Let me post here soon.