summaryrefslogtreecommitdiffstats
path: root/runtime/io.c
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2009-10-27 12:15:29 -0700
committerJosh Stone <jistone@redhat.com>2009-10-27 12:15:29 -0700
commita1995fef7f86ee6d1c3860cfb7e2652d986e4aa9 (patch)
treecd0e0c3d54007f93811ad7b26ae9a72afdabbd3e /runtime/io.c
parentf70d5f6b702e8da5c6affb3f34836c466b01f1b9 (diff)
downloadsystemtap-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/io.c')
0 files changed, 0 insertions, 0 deletions