Message ID | E1Q22wg-00080R-00.ia6432-inbox-ru@f70.mail.ru (mailing list archive) |
---|---|
State | RFC, archived |
Delegated to: | Trond Myklebust |
Headers | show |
--- a/net/sunrpc/sched.c 2011-03-22 16:55:36.802000287 +0300 +++ b/net/sunrpc/sched.c 2011-03-22 17:01:13.858000242 +0300 @@ -939,7 +939,8 @@ if (!(rovr->tk_flags & RPC_TASK_KILLED)) { rovr->tk_flags |= RPC_TASK_KILLED; rpc_exit(rovr, -EIO); - rpc_wake_up_task(rovr); + if (RPC_IS_QUEUED(rovr)) + rpc_wake_up_task(rovr); } } spin_unlock(&clnt->cl_lock);