From 49da848006b093ca432343e69ccdb8e0136101bf Mon Sep 17 00:00:00 2001 From: isaac Date: Wed, 12 Sep 2007 02:21:00 +0000 Subject: [PATCH] - srpc_lnet_ev_handler doesn't need LNET_LOCK in userland. --- lnet/selftest/rpc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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; } -- 1.8.3.1