- **status**: review --> fixed
- **Comment**:
commit f354b251661bb20f71cdcf92153cde7b323d8175
Author: thuan.tran <[email protected]>
Date: Fri Mar 20 11:26:02 2020 +0700
mds: fix mds_tipc_fctrl_shutdown() stuck forever [#3169]
- Deadlock of portid_map_mutex locking: mds_tipc_fctrl_shutdown()
take lock then wait for thread process_all_events() to be canceled.
But that thread also want get lock then it is keep waiting for lock.
- Create safe method to cancel process_all_events() thread similar
as the way MDS destroy legacy receiving thread.
And getting portid_map_mutex lock only after that thread released.
---
** [tickets:#3169] mds: mds_tipc_fctrl_shutdown() stuck forever**
**Status:** fixed
**Milestone:** 5.20.05
**Created:** Fri Mar 20, 2020 04:24 AM UTC by Thuan Tran
**Last Updated:** Mon Mar 23, 2020 10:03 AM UTC
**Owner:** Thuan Tran
ckpttest 20 11 hang forever because mds_tipc_fctrl_shutdown() stuck forever.
Because it take lock then wait for thread process_all_events() to be canceled
but that thread also want acquire the lock then it is keep waiting for lock
forever.
~~~
<143>1 2020-03-20T04:38:55.194744+01:00 PL-3 ckpttest 365 mds.log [meta
sequenceId="3599"] thuantr: poll() ret = 1
<142>1 2020-03-20T04:38:55.194753+01:00 PL-3 ckpttest 365 mds.log [meta
sequenceId="3600"] MDTM: Processing Timer mailbox events
<142>1 2020-03-20T04:38:55.194766+01:00 PL-3 ckpttest 365 mds.log [meta
sequenceId="3601"] MDTM: DESTROY post to Mailbox Success
<143>1 2020-03-20T04:38:55.194834+01:00 PL-3 ckpttest 365 mds.log [meta
sequenceId="3602"] MDS:LIB_DESTROY: Destroy ack from MDS thread in 70 s
<143>1 2020-03-20T04:38:55.194898+01:00 PL-3 ckpttest 365 mds.log [meta
sequenceId="3603"] thuantr: mds_tipc_fctrl_shutdown() start
<143>1 2020-03-20T04:38:55.194903+01:00 PL-3 ckpttest 365 mds.log [meta
sequenceId="3604"] thuantr: mds_tipc_fctrl_shutdown() ncs_task_release() start
~~~
---
Sent from sourceforge.net because [email protected] is
subscribed to https://sourceforge.net/p/opensaf/tickets/
To unsubscribe from further messages, a project admin can change settings at
https://sourceforge.net/p/opensaf/admin/tickets/options. Or, if this is a
mailing list, you can unsubscribe from the mailing list._______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets