Skip to content
Commit 2798d4ce authored by Al Viro's avatar Al Viro
Browse files

acct: get rid of acct_lock for acct->count



* make acct->count atomic and acct freeing - rcu-delayed.
* instead of grabbing acct_lock around the places where we take a reference,
do that under rcu_read_lock() with atomic_long_inc_not_zero().
* have the new acct locked before making ns->bacct point to it

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 215752fc
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment