]> git.baikalelectronics.ru Git - kernel.git/commit
NLM: Ensure that nlmclnt_cancel_callback() doesn't loop forever
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 1 Feb 2006 17:18:25 +0000 (12:18 -0500)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 1 Feb 2006 17:52:23 +0000 (12:52 -0500)
commitc09a550f6334d2845cec4f37058b6a1f608e3b76
treedba6fb715156d9bc8fdf0ff57d9151e67fc1322c
parentd51c6e454a84ba8960bec6c1bf426faba43b3fba
NLM: Ensure that nlmclnt_cancel_callback() doesn't loop forever

 If the server returns NLM_LCK_DENIED_NOLOCKS, we currently retry the
 entire NLM_CANCEL request. This may end up looping forever unless the
 server changes its mind (why would it do that, though?).

 Ensure that we limit the number of retries (to 3).

 See bug# 5957 in bugzilla.kernel.org.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/lockd/clntproc.c
include/linux/lockd/lockd.h