From 2b2cb4181266188cd6b62a848e44b2eb5d158144 Mon Sep 17 00:00:00 2001 From: Mikolaj Golub Date: Sun, 5 Feb 2012 15:21:08 +0000 Subject: [PATCH] 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 --- sbin/hastd/primary.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbin/hastd/primary.c b/sbin/hastd/primary.c index ca1ab53afa6..54d955d4ce7 100644 --- a/sbin/hastd/primary.c +++ b/sbin/hastd/primary.c @@ -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 */