svn commit: r226856 - head/sbin/hastd
Pawel Jakub Dawidek
pjd at FreeBSD.org
Thu Oct 27 20:13:39 UTC 2011
Author: pjd
Date: Thu Oct 27 20:13:39 2011
New Revision: 226856
URL: http://svn.freebsd.org/changeset/base/226856
Log:
Reduce indentation.
MFC after: 3 days
Modified:
head/sbin/hastd/primary.c
Modified: head/sbin/hastd/primary.c
==============================================================================
--- head/sbin/hastd/primary.c Thu Oct 27 20:10:21 2011 (r226855)
+++ head/sbin/hastd/primary.c Thu Oct 27 20:13:39 2011 (r226856)
@@ -1319,18 +1319,18 @@ local_send_thread(void *arg)
}
break;
}
- if (refcount_release(&hio->hio_countdown)) {
- if (ISSYNCREQ(hio)) {
- mtx_lock(&sync_lock);
- SYNCREQDONE(hio);
- mtx_unlock(&sync_lock);
- cv_signal(&sync_cond);
- } else {
- pjdlog_debug(2,
- "local_send: (%p) Moving request to the done queue.",
- hio);
- QUEUE_INSERT2(hio, done);
- }
+ if (!refcount_release(&hio->hio_countdown))
+ continue;
+ if (ISSYNCREQ(hio)) {
+ mtx_lock(&sync_lock);
+ SYNCREQDONE(hio);
+ mtx_unlock(&sync_lock);
+ cv_signal(&sync_cond);
+ } else {
+ pjdlog_debug(2,
+ "local_send: (%p) Moving request to the done queue.",
+ hio);
+ QUEUE_INSERT2(hio, done);
}
}
/* NOTREACHED */
@@ -1640,18 +1640,18 @@ remote_recv_thread(void *arg)
hio->hio_errors[ncomp] = 0;
nv_free(nv);
done_queue:
- if (refcount_release(&hio->hio_countdown)) {
- if (ISSYNCREQ(hio)) {
- mtx_lock(&sync_lock);
- SYNCREQDONE(hio);
- mtx_unlock(&sync_lock);
- cv_signal(&sync_cond);
- } else {
- pjdlog_debug(2,
- "remote_recv: (%p) Moving request to the done queue.",
- hio);
- QUEUE_INSERT2(hio, done);
- }
+ if (!refcount_release(&hio->hio_countdown))
+ continue;
+ if (ISSYNCREQ(hio)) {
+ mtx_lock(&sync_lock);
+ SYNCREQDONE(hio);
+ mtx_unlock(&sync_lock);
+ cv_signal(&sync_cond);
+ } else {
+ pjdlog_debug(2,
+ "remote_recv: (%p) Moving request to the done queue.",
+ hio);
+ QUEUE_INSERT2(hio, done);
}
}
/* NOTREACHED */
More information about the svn-src-all
mailing list