]> git.baikalelectronics.ru Git - kernel.git/commit
acct: get rid of acct_lock for acct->count
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 7 Aug 2014 11:04:28 +0000 (07:04 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 7 Aug 2014 18:40:08 +0000 (14:40 -0400)
commitec467258d20c1cf49caa1c078df95afc42d71da8
treee938df0fd8040a69da38a277c753aac42272c292
parent0952295a35b87c3f5630ddac99d7d3c7d5436984
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: Al Viro <viro@zeniv.linux.org.uk>
kernel/acct.c