diff mbox

=?utf-8?Q?Re=3A_[PATCH_v2]_RPC=3A_killing_RPC_tasks_races_fixed?=

Message ID E1Q22wg-00080R-00.ia6432-inbox-ru@f70.mail.ru (mailing list archive)
State RFC, archived
Delegated to: Trond Myklebust
Headers show

Commit Message

Peter Lojkin March 22, 2011, 2:52 p.m. UTC
None
diff mbox

Patch

--- 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);