aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/lockd/svclock.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/fs/lockd/svclock.c b/fs/lockd/svclock.c
index 5581e020644b..3507c80d1d4b 100644
--- a/fs/lockd/svclock.c
+++ b/fs/lockd/svclock.c
@@ -870,15 +870,15 @@ nlmsvc_grant_reply(struct nlm_cookie *cookie, __be32 status)
870 if (!(block = nlmsvc_find_block(cookie))) 870 if (!(block = nlmsvc_find_block(cookie)))
871 return; 871 return;
872 872
873 if (block) { 873 if (status == nlm_lck_denied_grace_period) {
874 if (status == nlm_lck_denied_grace_period) { 874 /* Try again in a couple of seconds */
875 /* Try again in a couple of seconds */ 875 nlmsvc_insert_block(block, 10 * HZ);
876 nlmsvc_insert_block(block, 10 * HZ); 876 } else {
877 } else { 877 /*
878 /* Lock is now held by client, or has been rejected. 878 * Lock is now held by client, or has been rejected.
879 * In both cases, the block should be removed. */ 879 * In both cases, the block should be removed.
880 nlmsvc_unlink_block(block); 880 */
881 } 881 nlmsvc_unlink_block(block);
882 } 882 }
883 nlmsvc_release_block(block); 883 nlmsvc_release_block(block);
884} 884}