Date: Thu, 27 Oct 2011 20:13:39 +0000 (UTC) From: Pawel Jakub Dawidek <pjd@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r226856 - head/sbin/hastd Message-ID: <201110272013.p9RKDdP3023246@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201110272013.p9RKDdP3023246>