summaryrefslogtreecommitdiffstats
path: root/fs/lockd/host.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/lockd/host.c')
-rw-r--r--fs/lockd/host.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/lockd/host.c b/fs/lockd/host.c
index dcd33c19b..a18c2d109 100644
--- a/fs/lockd/host.c
+++ b/fs/lockd/host.c
@@ -328,7 +328,7 @@ nlm_gc_hosts(void)
if (host->h_monitored)
nsm_unmonitor(host);
if ((clnt = host->h_rpcclnt) != NULL) {
- if (clnt->cl_users) {
+ if (atomic_read(&clnt->cl_users)) {
printk(KERN_WARNING
"lockd: active RPC handle\n");
clnt->cl_dead = 1;