Commit 4f47707b authored by Linus Torvalds's avatar Linus Torvalds

Fix rpc shutdown event condition bug

We want to wait for the cl_users to go down to zero, not for it to stay
positive.  Quoth Trond (who wasn't even the author, but acked the wrong
version): "Argh! I need to increase my daily caffeine dosages."
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent a9c82815
...@@ -269,7 +269,7 @@ rpc_shutdown_client(struct rpc_clnt *clnt) ...@@ -269,7 +269,7 @@ rpc_shutdown_client(struct rpc_clnt *clnt)
clnt->cl_dead = 0; clnt->cl_dead = 0;
rpc_killall_tasks(clnt); rpc_killall_tasks(clnt);
wait_event_timeout(destroy_wait, wait_event_timeout(destroy_wait,
atomic_read(&clnt->cl_users) > 0, 1*HZ); !atomic_read(&clnt->cl_users), 1*HZ);
} }
if (atomic_read(&clnt->cl_users) < 0) { if (atomic_read(&clnt->cl_users) < 0) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment