diff options
Diffstat (limited to 'fs/lockd/clntlock.c')
-rw-r--r-- | fs/lockd/clntlock.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/lockd/clntlock.c b/fs/lockd/clntlock.c index 0796c45d0d4d..01bfe7662751 100644 --- a/fs/lockd/clntlock.c +++ b/fs/lockd/clntlock.c | |||
@@ -144,6 +144,9 @@ int nlmclnt_block(struct nlm_wait *block, struct nlm_rqst *req, long timeout) | |||
144 | timeout); | 144 | timeout); |
145 | if (ret < 0) | 145 | if (ret < 0) |
146 | return -ERESTARTSYS; | 146 | return -ERESTARTSYS; |
147 | /* Reset the lock status after a server reboot so we resend */ | ||
148 | if (block->b_status == nlm_lck_denied_grace_period) | ||
149 | block->b_status = nlm_lck_blocked; | ||
147 | req->a_res.status = block->b_status; | 150 | req->a_res.status = block->b_status; |
148 | return 0; | 151 | return 0; |
149 | } | 152 | } |