Author: trociny
Date: Sun Feb  5 15:21:08 2012
New Revision: 231015
URL: http://svn.freebsd.org/changeset/base/231015

Log:
  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

Modified:
  head/sbin/hastd/primary.c

Modified: head/sbin/hastd/primary.c
==============================================================================
--- head/sbin/hastd/primary.c   Sun Feb  5 13:29:01 2012        (r231014)
+++ head/sbin/hastd/primary.c   Sun Feb  5 15:21:08 2012        (r231015)
@@ -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 */
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to