fs: cleanup files_lock locking
authorNick Piggin <npiggin@kernel.dk>
Tue, 17 Aug 2010 18:37:35 +0000 (04:37 +1000)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 18 Aug 2010 12:35:47 +0000 (08:35 -0400)
commitee2ffa0dfdd2db19705f2ba1c6a4c0bfe8122dd8
treee48400d1a33f8d2e68589ccfd61637aa64462f08
parentb04f784e5d19ed58892833dae845738972cea260
fs: cleanup files_lock locking

fs: cleanup files_lock locking

Lock tty_files with a new spinlock, tty_files_lock; provide helpers to
manipulate the per-sb files list; unexport the files_lock spinlock.

Cc: linux-kernel@vger.kernel.org
Cc: Christoph Hellwig <hch@infradead.org>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Acked-by: Andi Kleen <ak@linux.intel.com>
Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Nick Piggin <npiggin@kernel.dk>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
drivers/char/pty.c
drivers/char/tty_io.c
fs/file_table.c
fs/open.c
include/linux/fs.h
include/linux/tty.h
security/selinux/hooks.c