]> err.no Git - linux-2.6/commit
[PATCH] knfsd: nfsd4: fix laundromat shutdown race
authorNeilBrown <neilb@suse.de>
Tue, 11 Apr 2006 05:55:37 +0000 (22:55 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 11 Apr 2006 13:18:52 +0000 (06:18 -0700)
commit5e8d5c29482dc56de5971ddc99c6e7f69e4d16f6
treefe50096b5742960ff6bcccbb053c1f9b379916c8
parent6f54e2d0d3a904e55c9c50b78542072f6c42080e
[PATCH] knfsd: nfsd4: fix laundromat shutdown race

We need to make sure the laundromat work doesn't reschedule itself just when
we try to cancel it.  Also, we shouldn't be waiting for it to finish running
while holding the state lock, as that's a potential deadlock.

Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
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/nfsd/nfs4state.c