From: Keith Mannthey Date: Wed, 21 Aug 2013 04:32:28 +0000 (-0700) Subject: LU-3698 ptlrpc: skip rpcs that fail ptl_send_rpc X-Git-Tag: 2.4.93~21 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=ba43dbdf04422f39b113de272227b6ed862acdd9 LU-3698 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 Original patch from Peng Tao. Signed-off-by: Keith Mannthey Change-Id: Ib90cb7841cd0866bcf08f6dcd702d65804992e1d Reviewed-on: http://review.whamcloud.com/7411 Tested-by: Hudson Reviewed-by: Jinshan Xiong Tested-by: Maloo Reviewed-by: Mike Pershin Reviewed-by: Oleg Drokin --- diff --git a/lustre/ptlrpc/client.c b/lustre/ptlrpc/client.c index 7ab33c7..7889620 100644 --- a/lustre/ptlrpc/client.c +++ b/lustre/ptlrpc/client.c @@ -1737,6 +1737,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;