X-Git-Url: http://git.monstr.eu/?a=blobdiff_plain;f=kernel%2Facct.c;h=d15c0ee4d95504a88337498045a84f53a6ae0d15;hb=6a787d6f593d57bec886718ef3fbbdc5bde70fcb;hp=6670fbd3e466d3003ae3c20d5f321b6e0abb2069;hpb=1e19bded7f5d5152b7f53ee7356241ecb18905b0;p=linux-2.6-microblaze.git diff --git a/kernel/acct.c b/kernel/acct.c index 6670fbd3e466..d15c0ee4d955 100644 --- a/kernel/acct.c +++ b/kernel/acct.c @@ -147,7 +147,7 @@ static struct bsd_acct_struct *acct_get(struct pid_namespace *ns) again: smp_rmb(); rcu_read_lock(); - res = to_acct(ACCESS_ONCE(ns->bacct)); + res = to_acct(READ_ONCE(ns->bacct)); if (!res) { rcu_read_unlock(); return NULL; @@ -159,7 +159,7 @@ again: } rcu_read_unlock(); mutex_lock(&res->lock); - if (res != to_acct(ACCESS_ONCE(ns->bacct))) { + if (res != to_acct(READ_ONCE(ns->bacct))) { mutex_unlock(&res->lock); acct_put(res); goto again;