summaryrefslogtreecommitdiffstats
path: root/kernel/acct.c
diff options
context:
space:
mode:
authorTejun Heo2015-09-29 23:47:19 +0200
committerTejun Heo2016-08-10 21:02:58 +0200
commit3f49bdd95855a33eea749304d2e10530a869218b (patch)
treefe3b7bd2f627ce5fd66084e9e20beec98df1f471 /kernel/acct.c
parentpercpu_ref: unify staggered atomic switching wait behavior (diff)
downloadkernel-qcow2-linux-3f49bdd95855a33eea749304d2e10530a869218b.tar.gz
kernel-qcow2-linux-3f49bdd95855a33eea749304d2e10530a869218b.tar.xz
kernel-qcow2-linux-3f49bdd95855a33eea749304d2e10530a869218b.zip
percpu_ref: restructure operation mode switching
Restructure atomic/percpu mode switching. * The users of __percpu_ref_switch_to_atomic/percpu() now call a new function __percpu_ref_switch_mode() which calls either of the original switching functions depending on the current state of ref->force_atomic and the __PERCPU_REF_DEAD flag. The callers no longer check whether switching is necessary but always invoke __percpu_ref_switch_mode(). * !ref->confirm_switch waiting is collected into __percpu_ref_switch_mode(). This patch doesn't cause any behavior differences. Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'kernel/acct.c')
0 files changed, 0 insertions, 0 deletions