Coda: add spin lock to protect accesses to struct coda_inode_info.
authorYoshihisa Abe <yoshiabe@cs.cmu.edu>
Mon, 25 Oct 2010 06:03:44 +0000 (02:03 -0400)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 25 Oct 2010 15:02:40 +0000 (08:02 -0700)
commitb5ce1d83a62fc109d8e815b1fc71dcdb0d26bc49
treeea537c1b6436c36bee3b33d8b4f750124fd7d661
parent3a99c6319064af3f2e18eb929f638d555dbf7a62
Coda: add spin lock to protect accesses to struct coda_inode_info.

We mostly need it to protect cached user permissions. The c_flags field
is advisory, reading the wrong value is harmless and in the worst case
we hit a slow path where we have to make an extra upcall to the
userspace cache manager when revalidating a dentry or inode.

Signed-off-by: Yoshihisa Abe <yoshiabe@cs.cmu.edu>
Signed-off-by: Jan Harkes <jaharkes@cs.cmu.edu>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/coda/cache.c
fs/coda/cnode.c
fs/coda/dir.c
fs/coda/file.c
fs/coda/inode.c
include/linux/coda_fs_i.h
include/linux/coda_linux.h