diff options
author | Srikar Dronamraju <srikar@linux.vnet.ibm.com> | 2009-10-19 13:44:21 +0530 |
---|---|---|
committer | Srikar Dronamraju <srikar@linux.vnet.ibm.com> | 2009-10-19 13:44:21 +0530 |
commit | 720bbfc68d9e7dfd8c37587c6a61da75d6aab4fa (patch) | |
tree | a3114dc7319d78202b40f3458bac4516aedbe4cf /grapher | |
parent | 3c2341daf979fc38fc534ae91e00594a525962e0 (diff) | |
download | systemtap-steved-720bbfc68d9e7dfd8c37587c6a61da75d6aab4fa.tar.gz systemtap-steved-720bbfc68d9e7dfd8c37587c6a61da75d6aab4fa.tar.xz systemtap-steved-720bbfc68d9e7dfd8c37587c6a61da75d6aab4fa.zip |
Avoid lockdep warnings.
uprobe_fork_uproc() runs with parent_uproc->rwsem locked.
However uprobe_mk_process() that gets called within uprobe_fork_uproc()
also locks child_uproc->rwsem after initializing it.
Lockdep report confuses this to acquiring a lock that already has been
acquired and suggests using sub-classes.
The alternatives we have are:
1. use classes level to distinguish different uproc structures.
2. unlock parent_uproc->rwsem before we call uprobe_fork_uproc().
3. dont try locking child_uproc->rwsem; since we are protected by
uproc_mutex as well as parent_uproc->rwsem;
We use the last approach.
Signed-off-by: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
---
Diffstat (limited to 'grapher')
0 files changed, 0 insertions, 0 deletions