diff options
-rw-r--r-- | fs/lockd/clntlock.c | 3 | ||||
-rw-r--r-- | fs/lockd/clntproc.c | 3 |
2 files changed, 3 insertions, 3 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 | } |
diff --git a/fs/lockd/clntproc.c b/fs/lockd/clntproc.c index 7e529c3c45c0..9760ecb9b60f 100644 --- a/fs/lockd/clntproc.c +++ b/fs/lockd/clntproc.c | |||
@@ -550,9 +550,6 @@ again: | |||
550 | status = nlmclnt_block(block, req, NLMCLNT_POLL_TIMEOUT); | 550 | status = nlmclnt_block(block, req, NLMCLNT_POLL_TIMEOUT); |
551 | if (status < 0) | 551 | if (status < 0) |
552 | break; | 552 | break; |
553 | /* Resend the blocking lock request after a server reboot */ | ||
554 | if (resp->status == nlm_lck_denied_grace_period) | ||
555 | continue; | ||
556 | if (resp->status != nlm_lck_blocked) | 553 | if (resp->status != nlm_lck_blocked) |
557 | break; | 554 | break; |
558 | } | 555 | } |