diff options
author | Jeff Layton <[email protected]> | 2016-04-21 20:51:56 -0400 |
---|---|---|
committer | Anna Schumaker <[email protected]> | 2016-05-09 09:05:40 -0400 |
commit | 62dbef2ae41393eba2f6853ca174130f2d09c7d3 (patch) | |
tree | c042592a7ea30cb95d46670142e06f73d7b1d545 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | c065d229e308ede426a3608cf480c61983b36fb8 (diff) |
sunrpc: add a get_rpccred_rcu inline
Sometimes we might have a RCU managed credential pointer and don't want
to use locking to handle it. Add a function that will take a reference
to the cred iff the refcount is not already zero. Callers can dereference
the pointer under the rcu_read_lock and use that function to take a
reference only if the cred is not on its way to destruction.
Signed-off-by: Jeff Layton <[email protected]>
Signed-off-by: Anna Schumaker <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions