summaryrefslogtreecommitdiffstats
path: root/fs/autofs4/Makefile
diff options
context:
space:
mode:
authorChuck Lever <cel@citi.umich.edu>2005-08-18 20:24:11 +0200
committerLinus Torvalds <torvalds@g5.osdl.org>2005-08-18 21:53:56 +0200
commit412d582ec1dd59aab2353f8cb7e74f2c79cd20b9 (patch)
tree9088c5e29cbd4b33e907a7b5f9a950dd0dce36c1 /fs/autofs4/Makefile
parent[PATCH] NFS: split nfsi->flags into two fields (diff)
downloadlinux-412d582ec1dd59aab2353f8cb7e74f2c79cd20b9.tar.xz
linux-412d582ec1dd59aab2353f8cb7e74f2c79cd20b9.zip
[PATCH] NFS: use atomic bitops to manipulate flags in nfsi->flags
Introduce atomic bitops to manipulate the bits in the nfs_inode structure's "flags" field. Using bitops means we can use a generic wait_on_bit call instead of an ad hoc locking scheme in fs/nfs/inode.c, so we can remove the "nfs_i_wait" field from nfs_inode at the same time. The other new flags field will continue to use bitmask and logic AND and OR. This permits several flags to be set at the same time efficiently. The following patch adds a spin lock to protect these flags, and this spin lock will later cover other fields in the nfs_inode structure, amortizing the cost of using this type of serialization. Test plan: Millions of fsx ops on SMP clients. Signed-off-by: Chuck Lever <cel@netapp.com> Cc: Trond Myklebust <trond.myklebust@fys.uio.no> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/autofs4/Makefile')
0 files changed, 0 insertions, 0 deletions