We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b20416 commit c27d0a0Copy full SHA for c27d0a0
drivers/staging/lustre/lnet/selftest/rpc.c
@@ -1427,9 +1427,16 @@ srpc_lnet_ev_handler(lnet_event_t *ev)
1427
LASSERT(!in_interrupt());
1428
1429
if (ev->status) {
1430
+ __u32 errors;
1431
+
1432
spin_lock(&srpc_data.rpc_glock);
- srpc_data.rpc_counters.errors++;
1433
+ if (ev->status != -ECANCELED) /* cancellation is not error */
1434
+ srpc_data.rpc_counters.errors++;
1435
+ errors = srpc_data.rpc_counters.errors;
1436
spin_unlock(&srpc_data.rpc_glock);
1437
1438
+ CNETERR("LNet event status %d type %d, RPC errors %u\n",
1439
+ ev->status, ev->type, errors);
1440
}
1441
1442
rpcev->ev_lnet = ev->type;
0 commit comments