Mirror of the lttng-dev mailing list
 help / color / mirror / Atom feed
* [lttng-dev] Deadlock in call_rcu_thread when destroy rculfhash node with nested rculfhash
@ 2016-10-19  9:56 Evgeniy Ivanov
  2016-10-19 10:03 ` Evgeniy Ivanov
  0 siblings, 1 reply; 4+ messages in thread
From: Evgeniy Ivanov @ 2016-10-19  9:56 UTC (permalink / raw)


Hi,

Each node of top level rculfhash has nested rculfhash. Some thread clears
the top level map and then uses rcu_barrier() to wait until everything is
destroyed (it is done to check leaks). Recently it started to dead lock
sometimes with following stacks:

Thread1:

__poll
cds_lfht_destroy    <---- nested map
...
free_Node(rcu_head*)  <----- node of top level map
call_rcu_thread

Thread2:

syscall
rcu_barrier_qsbr
destroy_all
main


Did call_rcu_thread dead lock with barrier thread? Or is it some kind of
internal deadlock because of nested maps?


-- 
Cheers,
Evgeniy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.lttng.org/pipermail/lttng-dev/attachments/20161019/96d17576/attachment.html>


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-10-21  8:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-19  9:56 [lttng-dev] Deadlock in call_rcu_thread when destroy rculfhash node with nested rculfhash Evgeniy Ivanov
2016-10-19 10:03 ` Evgeniy Ivanov
2016-10-19 15:03   ` Mathieu Desnoyers
2016-10-21  8:19     ` Evgeniy Ivanov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox