mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
pull bumping refcount into ->kill()
there will be one more change of ->kill() calling conventions; this isn't final. Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
9e251d0204
commit
32426f6653
2 changed files with 6 additions and 12 deletions
|
|
@ -189,6 +189,12 @@ static void acct_pin_kill(struct fs_pin *pin)
|
|||
{
|
||||
struct bsd_acct_struct *acct;
|
||||
acct = container_of(pin, struct bsd_acct_struct, pin);
|
||||
if (!atomic_long_inc_not_zero(&pin->count)) {
|
||||
rcu_read_unlock();
|
||||
cpu_relax();
|
||||
return;
|
||||
}
|
||||
rcu_read_unlock();
|
||||
mutex_lock(&acct->lock);
|
||||
if (!acct->ns) {
|
||||
mutex_unlock(&acct->lock);
|
||||
|
|
|
|||
Loading…
Reference in a new issue