From: Peng Tao Date: Sat, 1 Mar 2014 02:16:41 +0000 (-0500) Subject: lustre/ptlrpc: skip rpcs that fail ptl_send_rpc X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=e3bceb234ed611478fb02a41f928c7697cbe0524;p=linux-beck.git lustre/ptlrpc: skip rpcs that fail ptl_send_rpc ptl_send_rpc is not dealing with -ENOMEM in some situations. When the ptl_send_rpc fails we need set error and skip further processing or trigger and LBUG Signed-off-by: Keith Mannthey Signed-off-by: Peng Tao Reviewed-on: http://review.whamcloud.com/7411 Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-3698 Reviewed-by: Mike Pershin Reviewed-by: Oleg Drokin Signed-off-by: Oleg Drokin Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/lustre/lustre/ptlrpc/client.c b/drivers/staging/lustre/lustre/ptlrpc/client.c index ed8e538c302e..e1e121b785b9 100644 --- a/drivers/staging/lustre/lustre/ptlrpc/client.c +++ b/drivers/staging/lustre/lustre/ptlrpc/client.c @@ -1695,6 +1695,7 @@ int ptlrpc_check_set(const struct lu_env *env, struct ptlrpc_request_set *set) spin_lock(&req->rq_lock); req->rq_net_err = 1; spin_unlock(&req->rq_lock); + continue; } /* need to reset the timeout */ force_timer_recalc = 1;