diff --git a/[refs] b/[refs] index c731d80f1b4d..8484a4a357ed 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: b66285cee3f9abad26cca6c9b848e1ad6b792d94 +refs/heads/master: 6b54dae2b0defb30babb0fe87b13463b9f4b2907 diff --git a/trunk/fs/lockd/host.c b/trunk/fs/lockd/host.c index 0257a5594524..fb24a9730345 100644 --- a/trunk/fs/lockd/host.c +++ b/trunk/fs/lockd/host.c @@ -103,8 +103,8 @@ nlm_lookup_host(int server, const struct sockaddr_in *sin, continue; /* See if we have an NSM handle for this client */ - if (!nsm && (nsm = host->h_nsmhandle) != 0) - atomic_inc(&nsm->sm_count); + if (!nsm) + nsm = host->h_nsmhandle; if (host->h_proto != proto) continue; @@ -120,6 +120,8 @@ nlm_lookup_host(int server, const struct sockaddr_in *sin, nlm_get_host(host); goto out; } + if (nsm) + atomic_inc(&nsm->sm_count); host = NULL;