Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Feb 2014 00:00:01 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r261449 - head/sys/rpc
Message-ID:  <201402040000.s140016T053495@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mav
Date: Tue Feb  4 00:00:01 2014
New Revision: 261449
URL: http://svnweb.freebsd.org/changeset/base/261449

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

Modified:
  head/sys/rpc/svc.c

Modified: head/sys/rpc/svc.c
==============================================================================
--- head/sys/rpc/svc.c	Mon Feb  3 22:51:30 2014	(r261448)
+++ head/sys/rpc/svc.c	Tue Feb  4 00:00:01 2014	(r261449)
@@ -1178,9 +1178,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) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201402040000.s140016T053495>