diff options
| author | Todd Kjos <[email protected]> | 2017-06-29 12:01:58 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2017-07-17 14:48:23 +0200 |
| commit | 372e3147df7016ebeaa372939e8774a1292db558 (patch) | |
| tree | bee237ddddedc9dc7966d8663308121006012f40 /tools/perf/scripts/python | |
| parent | 7a4408c6bd3eb1dafba67986259191be081e3efb (diff) | |
binder: refactor binder ref inc/dec for thread safety
Once locks are added, binder_ref's will only be accessed
safely with the proc lock held. Refactor the inc/dec paths
to make them atomic with the binder_get_ref* paths and
node inc/dec. For example, instead of:
ref = binder_get_ref(proc, handle, strong);
...
binder_dec_ref(ref, strong);
we now have:
ret = binder_dec_ref_for_handle(proc, handle, strong, &rdata);
Since the actual ref is no longer exposed to callers, a
new struct binder_ref_data is introduced which can be used
to return a copy of ref state.
Signed-off-by: Todd Kjos <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions