mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04:00
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 <[email protected]>
This commit is contained in:
1 parent
16fb24252a
commit
aaaa99423b
2 files changed
+5
No files matched your search
@@ -84,6 +84,7 @@ struct nlm_rqst {
|
||||
struct nlm_args a_args; /* arguments */
|
||||
struct nlm_res a_res; /* result */
|
||||
struct nlm_wait * a_block;
|
||||
unsigned int a_retries; /* Retry count */
|
||||
char a_owner[NLMCLNT_OHSIZE];
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user