diff options
-rw-r--r-- | net/sunrpc/clnt.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c index 5530ac8c6df9..a44da8b3d240 100644 --- a/net/sunrpc/clnt.c +++ b/net/sunrpc/clnt.c | |||
@@ -268,7 +268,8 @@ rpc_shutdown_client(struct rpc_clnt *clnt) | |||
268 | clnt->cl_oneshot = 0; | 268 | clnt->cl_oneshot = 0; |
269 | clnt->cl_dead = 0; | 269 | clnt->cl_dead = 0; |
270 | rpc_killall_tasks(clnt); | 270 | rpc_killall_tasks(clnt); |
271 | sleep_on_timeout(&destroy_wait, 1*HZ); | 271 | wait_event_timeout(destroy_wait, |
272 | atomic_read(&clnt->cl_users) > 0, 1*HZ); | ||
272 | } | 273 | } |
273 | 274 | ||
274 | if (atomic_read(&clnt->cl_users) < 0) { | 275 | if (atomic_read(&clnt->cl_users) < 0) { |