From b4fced900b2c7a72e9a489e3493b9df28bf9ceaf Mon Sep 17 00:00:00 2001 From: Alexander Motin Date: Tue, 4 Feb 2014 00:00:01 +0000 Subject: Fix lock acquisition in case no request space available, missed in r260097. MFC after: 3 days --- sys/rpc/svc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/rpc') diff --git a/sys/rpc/svc.c b/sys/rpc/svc.c index bc82cd47389e..71f9d0a603d3 100644 --- a/sys/rpc/svc.c +++ b/sys/rpc/svc.c @@ -1178,9 +1178,9 @@ svc_run_internal(SVCPOOL *pool, bool_t ismaster) */ xprt->xp_lastactive = time_uptime; do { - mtx_unlock(&pool->sp_lock); if (!svc_request_space_available(pool)) break; + mtx_unlock(&pool->sp_lock); rqstp = NULL; stat = svc_getreq(xprt, &rqstp); if (rqstp) { -- cgit v1.2.3