]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] knfsd: Fix bug in recent lockd patches that can cause reclaim to fail
authorNeilBrown <neilb@suse.de>
Tue, 17 Oct 2006 07:10:17 +0000 (00:10 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 17 Oct 2006 15:18:46 +0000 (08:18 -0700)
commitc0daa6ddd395c7df4fc47fd7238fb7ceef974b94
tree4424568a3b335a379796eb867e3c0d898b2dc5d3
parent80f4eac8e10b81c99e653ae7c3b6416fc62966a1
[PATCH] knfsd: Fix bug in recent lockd patches that can cause reclaim to fail

When an nfs server shuts down, lockd needs to release all the locks even
though the client still holds them.

It should therefore not 'unmonitor' the clients, so that the files in nfs/sm
will still be there when the nfs server restarts, so that those clients will
be told to reclaim their locks.

However the hosts are fully unmonitored, so statd may well remove the files.

lockd has a test for 'sm_sticky' and avoid the unmonitor call if it is set,
but it is currently not set.

So set it when tearing down lockd.

Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/lockd/svcsubs.c