aboutsummaryrefslogtreecommitdiffstats
path: root/fs/lockd/clntlock.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/lockd/clntlock.c')
-rw-r--r--fs/lockd/clntlock.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/lockd/clntlock.c b/fs/lockd/clntlock.c
index 87e1d03e8267..54e63ddef043 100644
--- a/fs/lockd/clntlock.c
+++ b/fs/lockd/clntlock.c
@@ -150,7 +150,8 @@ u32 nlmclnt_grant(const struct sockaddr_in *addr, const struct nlm_lock *lock)
150static void nlmclnt_prepare_reclaim(struct nlm_host *host) 150static void nlmclnt_prepare_reclaim(struct nlm_host *host)
151{ 151{
152 down_write(&host->h_rwsem); 152 down_write(&host->h_rwsem);
153 host->h_monitored = 0; 153 if (host->h_nsmhandle)
154 host->h_nsmhandle->sm_monitored = 0;
154 host->h_state++; 155 host->h_state++;
155 host->h_nextrebind = 0; 156 host->h_nextrebind = 0;
156 nlm_rebind_host(host); 157 nlm_rebind_host(host);