Commit e3bceb23 authored by Peng Tao's avatar Peng Tao Committed by Greg Kroah-Hartman
Browse files

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: default avatarKeith Mannthey <keith.mannthey@intel.com>
Signed-off-by: default avatarPeng Tao <bergwolf@gmail.com>
Reviewed-on: http://review.whamcloud.com/7411
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-3698


Reviewed-by: default avatarMike Pershin <mike.pershin@intel.com>
Reviewed-by: default avatarOleg Drokin <oleg.drokin@intel.com>
Signed-off-by: default avatarOleg Drokin <oleg.drokin@intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 82a373ae
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;