From c017e98c55a6ba58bbf486d8240f1afa6e92a095 Mon Sep 17 00:00:00 2001 From: pjd Date: Thu, 27 Oct 2011 20:15:37 +0000 Subject: [PATCH] Minor cleanups. MFC after: 3 days --- sbin/hastd/primary.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sbin/hastd/primary.c b/sbin/hastd/primary.c index 49c56aeab9f..9bbd38cc556 100644 --- a/sbin/hastd/primary.c +++ b/sbin/hastd/primary.c @@ -1556,6 +1556,7 @@ remote_recv_thread(void *arg) &hio_recv_list_lock[ncomp]); } mtx_unlock(&hio_recv_list_lock[ncomp]); + rw_rlock(&hio_remote_lock[ncomp]); if (!ISCONNECTED(res, ncomp)) { rw_unlock(&hio_remote_lock[ncomp]); @@ -1963,7 +1964,7 @@ sync_thread(void *arg __unused) } mtx_unlock(&metadata_lock); - pjdlog_debug(2, "sync: (%p) Moving request to the send queues.", + pjdlog_debug(2, "sync: (%p) Moving request to the send queue.", hio); refcount_init(&hio->hio_countdown, 1); QUEUE_INSERT1(hio, send, ncomp); -- 2.45.0