From: isaac Date: Wed, 12 Sep 2007 02:21:00 +0000 (+0000) Subject: - srpc_lnet_ev_handler doesn't need LNET_LOCK in userland. X-Git-Tag: v1_7_0_51~763 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=49da848006b093ca432343e69ccdb8e0136101bf;p=fs%2Flustre-release.git - srpc_lnet_ev_handler doesn't need LNET_LOCK in userland. --- 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; }