Skip to contentSkip to conversation

Namespace removal deadlock in case of namespace detach command

DISCUSSION Sunad Bhandary S 3 participants 3 messages Apr 18, 2016 NVMe

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
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_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?

#2 lore raw
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_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?

We have a fix in nvme over fabrics tree.
Let me post here soon.