Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment