浏览代码

SUNRPC: Don't let rpc_delay() clobber non-timeout errors

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Trond Myklebust 11 年之前
父节点
当前提交
6bd144160a
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      net/sunrpc/sched.c

+ 2 - 1
net/sunrpc/sched.c

@@ -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;
 }
 
 /*