mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-03 11:13:56 +08:00
staging: lustre: fix bogus lst errors for lnet selftest
It should not be counted as errors if a test RPC has been stopped due to administrative actions, e.g. lst end_session from the remote test console. Signed-off-by: Isaac Huang <he.huang@intel.com> Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-4181 Reviewed-on: http://review.whamcloud.com/13279 Reviewed-by: Amir Shehata <amir.shehata@intel.com> Reviewed-by: Liang Zhen <liang.zhen@intel.com> Reviewed-by: Oleg Drokin <oleg.drokin@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
0b204161ee
commit
c27d0a081f
@ -1427,9 +1427,16 @@ srpc_lnet_ev_handler(lnet_event_t *ev)
|
||||
LASSERT(!in_interrupt());
|
||||
|
||||
if (ev->status) {
|
||||
__u32 errors;
|
||||
|
||||
spin_lock(&srpc_data.rpc_glock);
|
||||
if (ev->status != -ECANCELED) /* cancellation is not error */
|
||||
srpc_data.rpc_counters.errors++;
|
||||
errors = srpc_data.rpc_counters.errors;
|
||||
spin_unlock(&srpc_data.rpc_glock);
|
||||
|
||||
CNETERR("LNet event status %d type %d, RPC errors %u\n",
|
||||
ev->status, ev->type, errors);
|
||||
}
|
||||
|
||||
rpcev->ev_lnet = ev->type;
|
||||
|
Loading…
Reference in New Issue
Block a user