diff options
author | Josh Stone <jistone@redhat.com> | 2009-10-27 12:15:29 -0700 |
---|---|---|
committer | Josh Stone <jistone@redhat.com> | 2009-10-27 12:15:29 -0700 |
commit | a1995fef7f86ee6d1c3860cfb7e2652d986e4aa9 (patch) | |
tree | cd0e0c3d54007f93811ad7b26ae9a72afdabbd3e /runtime/alloc.c | |
parent | f70d5f6b702e8da5c6affb3f34836c466b01f1b9 (diff) | |
download | systemtap-steved-a1995fef7f86ee6d1c3860cfb7e2652d986e4aa9.tar.gz systemtap-steved-a1995fef7f86ee6d1c3860cfb7e2652d986e4aa9.tar.xz systemtap-steved-a1995fef7f86ee6d1c3860cfb7e2652d986e4aa9.zip |
PR10854: Use a mutex around transport startup/shutdown
We had a race where the probe setup could be called during/after the
probe shutdown in abnormal circumstances, which leads to kernel
callbacks still registered after module unload. (BOOM)
Now the setup/shutdown activities and related flags are guarded by a
mutex, so we should have strict ordering.
* runtime/transport/transport.c (_stp_transport_mutex): New.
(_stp_handle_start): Grab the mutex, and make sure we're not exiting.
(_stp_cleanup_and_exit): Grab the mutex.
(_stp_lock_inode, _stp_unlock_inode): Use kernel version for checking
inode locking type.
Diffstat (limited to 'runtime/alloc.c')
0 files changed, 0 insertions, 0 deletions