Skip to contentSkip to conversation

cds_lfht_resize() and QSBR

DISCUSSION Mathieu Desnoyers 2 participants 2 messages Jul 27, 2015 2 messages not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

Hi Eugene,

It's fine to use both lfht resize and destroy from URCU QSBR, because we explicitly mark the threads "offline" (saving the old state), and restore the original state, at the beginning and end of those functions.

However, calls to cds_lfht_resize() and cds_lfht_destroy are considered as an explicit quiescent state in URCU QSBR, therefore, don't expect your RCU read-side critical section to extend across those 2 calls.

Thanks,

Mathieu

Quoted 21 lines · ----- On Jul 27, 2015, at 12:03 PM, Eugene Ivanov [email protected]…

Hi,

According documentation "cds_lfht_resize should *not* be called from a RCU read-side critical section", can I use this function with QSBR, where almost everything is read-side CS? And cds_lfht_destroy()?

--
Eugene Ivanov

________________________________

This e-mail is confidential and may contain legally privileged information. It is intended only for the addressees. If you have received this e-mail in error, kindly notify us immediately by telephone or e-mail and delete the message from your system.

_______________________________________________
lttng-dev mailing list
[email protected]
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

Signature · 3 lines
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com
#3 lore raw
In reply to a message not in the archive

Thank you, Mathieu!

Quoted 11 lines · Mathieu Desnoyers

Hi Eugene,

It's fine to use both lfht resize and destroy from URCU QSBR, because we explicitly mark the threads "offline" (saving the old state), and restore the original state, at the beginning and end of those functions.

However, calls to cds_lfht_resize() and cds_lfht_destroy are considered as an explicit quiescent state in URCU QSBR, therefore, don't expect your RCU read-side critical section to extend across those 2 calls.

Quoted 27 lines

Thanks,

Mathieu

Quoted 21 lines · ----- On Jul 27, 2015, at 12:03 PM, Eugene Ivanov [email protected]…

Hi,

According documentation "cds_lfht_resize should *not* be called from a RCU read-side critical section", can I use this function with QSBR, where almost everything is read-side CS? And cds_lfht_destroy()?

--
Eugene Ivanov

________________________________

This e-mail is confidential and may contain legally privileged information. It is intended only for the addressees. If you have received this e-mail in error, kindly notify us immediately by telephone or e-mail and delete the message from your system.

_______________________________________________
lttng-dev mailing list
[email protected]
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

--
Eugene Ivanov

________________________________

This e-mail is confidential and may contain legally privileged information. It is intended only for the addressees. If you have received this e-mail in error, kindly notify us immediately by telephone or e-mail and delete the message from your system.