summaryrefslogtreecommitdiffstats
path: root/sbin/hastd
diff options
context:
space:
mode:
authortrociny <trociny@FreeBSD.org>2012-02-05 15:21:08 +0000
committertrociny <trociny@FreeBSD.org>2012-02-05 15:21:08 +0000
commitd2786f0a2c3f16ec2f18af460036f9a264286ef1 (patch)
tree9bb8e15ccda4df8183b8c63aa047b93a795214ee /sbin/hastd
parent73dbcb64518f1cc87d692fcae08ff8b8fb226385 (diff)
downloadFreeBSD-src-d2786f0a2c3f16ec2f18af460036f9a264286ef1.zip
FreeBSD-src-d2786f0a2c3f16ec2f18af460036f9a264286ef1.tar.gz
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
Diffstat (limited to 'sbin/hastd')
-rw-r--r--sbin/hastd/primary.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/hastd/primary.c b/sbin/hastd/primary.c
index ca1ab53..54d955d 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 */
OpenPOWER on IntegriCloud