]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] NFS: Fix cache consistency races
authorTrond Myklebust <trond.myklebust@fys.uio.no>
Mon, 17 Oct 2005 10:02:00 +0000 (06:02 -0400)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 17 Oct 2005 21:47:16 +0000 (14:47 -0700)
commit0a10caf2e3a1c7fb278c2d6e4a79232210cb19a2
tree7958a929e5b9486bf0b5358776078c1bc71faf88
parent826e010241343f494e27a7b050e3cf93a9a8fc01
[PATCH] NFS: Fix cache consistency races

If the data cache has been marked as potentially invalid by nfs_refresh_inode,
we should invalidate it rather than assume that changes are due to our own
activity.

Also ensure that we always start with a valid cache before declaring it
to be protected by a delegation.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/nfs/delegation.c
fs/nfs/file.c
fs/nfs/inode.c