]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - fs/lockd/clntproc.c
NLM: Ensure that we resend all pending blocking locks after a reclaim
[karo-tx-linux.git] / fs / lockd / clntproc.c
index 54f9e6ce0430ae88d742709bc47499c0d1b71731..52e5120bb159f14cd286f91ed2f72848f8aeb5d9 100644 (file)
@@ -550,6 +550,9 @@ again:
                status = nlmclnt_block(block, req, NLMCLNT_POLL_TIMEOUT);
                if (status < 0)
                        break;
+               /* Resend the blocking lock request after a server reboot */
+               if (resp->status ==  nlm_lck_denied_grace_period)
+                       continue;
                if (resp->status != nlm_lck_blocked)
                        break;
        }