1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-09 13:42:56 +00:00

Fix lock acquisition in case no request space available, missed in r260097.

MFC after:	3 days
This commit is contained in:
Alexander Motin 2014-02-04 00:00:01 +00:00
parent a578215eed
commit b4fced900b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=261449

View File

@ -1178,9 +1178,9 @@ svc_run_internal(SVCPOOL *pool, bool_t ismaster)
*/ */
xprt->xp_lastactive = time_uptime; xprt->xp_lastactive = time_uptime;
do { do {
mtx_unlock(&pool->sp_lock);
if (!svc_request_space_available(pool)) if (!svc_request_space_available(pool))
break; break;
mtx_unlock(&pool->sp_lock);
rqstp = NULL; rqstp = NULL;
stat = svc_getreq(xprt, &rqstp); stat = svc_getreq(xprt, &rqstp);
if (rqstp) { if (rqstp) {