]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
bsdacct: turn the acct_lock from on-the-struct to global
authorPavel Emelyanov <xemul@openvz.org>
Fri, 25 Jul 2008 08:48:45 +0000 (01:48 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 25 Jul 2008 17:53:47 +0000 (10:53 -0700)
commita75d97976517dcda69150fd81d6be86ae63324a1
tree57639d58edc123dd77413d929e2759cdd9159c23
parente59a04a7aa5ce2483470aee4f2eb79ba6b9afe8b
bsdacct: turn the acct_lock from on-the-struct to global

Don't use per-bsd-acct-struct lock, but work with a global one.

This lock is taken for short periods, so it doesn't seem it'll become a
bottleneck, but it will allow us to easily avoid many locking difficulties
in the future.

So this is a mostly s/acct_globals.lock/acct_lock/ over the file.

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Cc: Balbir Singh <balbir@in.ibm.com>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/acct.c