svn commit: r261578 - stable/9/sys/rpc

Alexander Motin mav at FreeBSD.org
Fri Feb 7 05:23:05 UTC 2014


Author: mav
Date: Fri Feb  7 05:23:04 2014
New Revision: 261578
URL: http://svnweb.freebsd.org/changeset/base/261578

Log:
  MFC r261449:
  Fix lock acquisition in case no request space available, missed in r260097.

Modified:
  stable/9/sys/rpc/svc.c
Directory Properties:
  stable/9/   (props changed)
  stable/9/sys/   (props changed)

Modified: stable/9/sys/rpc/svc.c
==============================================================================
--- stable/9/sys/rpc/svc.c	Fri Feb  7 05:08:59 2014	(r261577)
+++ stable/9/sys/rpc/svc.c	Fri Feb  7 05:23:04 2014	(r261578)
@@ -1180,9 +1180,9 @@ svc_run_internal(SVCPOOL *pool, bool_t i
 			 */
 			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) {


More information about the svn-src-stable-9 mailing list