Fix the regression introduced in r226859: if the local component is

out of date BIO_READ requests got lost instead of being sent to the
remote component.

Reviewed by:	pjd
MFC after:	1 week
This commit is contained in:
Mikolaj Golub 2012-02-05 15:21:08 +00:00
parent fb6d9e6077
commit 2b2cb41812
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=231015

View File

@ -1255,7 +1255,7 @@ ggate_recv_thread(void *arg)
pjdlog_debug(2,
"ggate_recv: (%p) Moving request to the send queues.", hio);
refcount_init(&hio->hio_countdown, ncomps);
for (ii = ncomp; ii < ncomps; ii++)
for (ii = ncomp; ii < ncomp + ncomps; ii++)
QUEUE_INSERT1(hio, send, ii);
}
/* NOTREACHED */