X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lnet%2Fselftest%2Frpc.c;h=057a081da63583d2fe8065370689f09aea8e3383;hp=356754b582c1f1ea8b6da2bd0bdb59a92f02d944;hb=49da848006b093ca432343e69ccdb8e0136101bf;hpb=5bb8ee97607c207c174b73cc796446df63549d6b diff --git a/lnet/selftest/rpc.c b/lnet/selftest/rpc.c index 356754b..057a081 100644 --- a/lnet/selftest/rpc.c +++ b/lnet/selftest/rpc.c @@ -1371,7 +1371,7 @@ srpc_send_reply (srpc_server_rpc_t *rpc) return rc; } -/* always called with LNET_LOCK() held, and in thread context */ +/* when in kernel always called with LNET_LOCK() held, and in thread context */ void srpc_lnet_ev_handler (lnet_event_t *ev) { @@ -1557,9 +1557,7 @@ srpc_check_event (int timeout) abort(); } - LNET_LOCK(); srpc_lnet_ev_handler(&ev); - LNET_UNLOCK(); return 1; }