SUNRPC: Don't let rpc_delay() clobber non-timeout errors
authorTrond Myklebust <trond.myklebust@primarydata.com>
Thu, 20 Mar 2014 16:53:54 +0000 (12:53 -0400)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Thu, 20 Mar 2014 17:38:43 +0000 (13:38 -0400)
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
net/sunrpc/sched.c

index ff3cc4b..25578af 100644 (file)
@@ -637,7 +637,8 @@ static void __rpc_queue_timer_fn(unsigned long ptr)
 
 static void __rpc_atrun(struct rpc_task *task)
 {
-       task->tk_status = 0;
+       if (task->tk_status == -ETIMEDOUT)
+               task->tk_status = 0;
 }
 
 /*