]> git.baikalelectronics.ru Git - kernel.git/commit
nfsd: remove unneeded spinlock in nfsd_cache_update
authorJeff Layton <jlayton@redhat.com>
Mon, 28 Jan 2013 19:41:08 +0000 (14:41 -0500)
committerJ. Bruce Fields <bfields@redhat.com>
Mon, 4 Feb 2013 14:16:19 +0000 (09:16 -0500)
commit2cc904bc25252acbefc8af85e81dfb5080185a8f
tree3cbfbef12dec62f99826c7f32a84fb6a86b8f4cf
parent303b8604fbd993c2fb0828ccc7f83ee97827b979
nfsd: remove unneeded spinlock in nfsd_cache_update

The locking rules for cache entries say that locking the cache_lock
isn't needed if you're just touching the current entry. Earlier
in this function we set rp->c_state to RC_UNUSED without any locking,
so I believe it's ok to do the same here.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfscache.c