summaryrefslogtreecommitdiffstats
path: root/sbin/hastd
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2011-10-27 20:15:37 +0000
committerpjd <pjd@FreeBSD.org>2011-10-27 20:15:37 +0000
commitc017e98c55a6ba58bbf486d8240f1afa6e92a095 (patch)
tree14aa8f372c9488a0f4df4d9be22261cab394fbb7 /sbin/hastd
parent739f9311642bd3b3a6f2b737c1c0ac43d94f0ba8 (diff)
downloadFreeBSD-src-c017e98c55a6ba58bbf486d8240f1afa6e92a095.zip
FreeBSD-src-c017e98c55a6ba58bbf486d8240f1afa6e92a095.tar.gz
Minor cleanups.
MFC after: 3 days
Diffstat (limited to 'sbin/hastd')
-rw-r--r--sbin/hastd/primary.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/hastd/primary.c b/sbin/hastd/primary.c
index 49c56ae..9bbd38c 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);
OpenPOWER on IntegriCloud