]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] knfsd: Unexport cache_fresh and fix a small race
authorNeilBrown <neilb@suse.de>
Mon, 27 Mar 2006 09:15:08 +0000 (01:15 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 27 Mar 2006 16:44:43 +0000 (08:44 -0800)
commit0bb4ec953271769c023b489bc1fd813832be9d04
treeed97a94406ed973573576fca585e1c87c15a4d05
parentcf0f96c9f4ea6529d9ce884fa8e63cc0d246e888
[PATCH] knfsd: Unexport cache_fresh and fix a small race

Cache_fresh is now only used in cache.c, so unexport it.

Part of cache_fresh (setting CACHE_VALID) should really be done under the
lock, while part (calling cache_revisit_request etc) must be done outside the
lock.  So we split it up appropriately.

Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/linux/sunrpc/cache.h
net/sunrpc/cache.c
net/sunrpc/sunrpc_syms.c