[Openais] [openais whitetank] fix ipc race

Steven Dake sdake at redhat.com
Wed Feb 25 06:38:49 PST 2009


The current ipc system does not allow refcounting in lib_init_fn and
lib_exit_fn.  This causes some services, specifically cpg, which keep a
copy of conn_info to race on ipc exit.  The result is a segfault which
occurs rarely during shutdown of the ipc connection in occurance with
cpg_leave or other processes disconnecting about the same time.

This patch reworks how lib_exit_fn works to allow refcounting in these
functions to ensure the conn struct is not prematurely freed.

Regards
-steve
-------------- next part --------------
A non-text attachment was scrubbed...
Name: openais-whitetank-ipc-fix-race.patch
Type: text/x-patch
Size: 9334 bytes
Desc: not available
Url : http://lists.linux-foundation.org/pipermail/openais/attachments/20090225/f116995b/attachment.bin 


More information about the Openais mailing list