diff options
author | pjd <pjd@FreeBSD.org> | 2010-08-27 14:10:25 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2010-08-27 14:10:25 +0000 |
commit | 0a7a46d1e36225a4b5420765eb52f58ff9439805 (patch) | |
tree | 5d72348eea448bfc717e9d03b9ed44dccfa19b3c /sbin/hastd/primary.c | |
parent | a3721f8d1bda2098ab211f42a740d0afed4f19d4 (diff) | |
download | FreeBSD-src-0a7a46d1e36225a4b5420765eb52f58ff9439805.zip FreeBSD-src-0a7a46d1e36225a4b5420765eb52f58ff9439805.tar.gz |
Don't increase number synchronized bytes in case of an error.
MFC after: 2 weeks
Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com
Diffstat (limited to 'sbin/hastd/primary.c')
-rw-r--r-- | sbin/hastd/primary.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sbin/hastd/primary.c b/sbin/hastd/primary.c index 429e914..8f96804 100644 --- a/sbin/hastd/primary.c +++ b/sbin/hastd/primary.c @@ -1699,15 +1699,14 @@ sync_thread(void *arg __unused) strerror(hio->hio_errors[ncomp])); goto free_queue; } + + synced += length; free_queue: mtx_lock(&range_lock); rangelock_del(range_sync, offset, length); if (range_regular_wait) cv_signal(&range_regular_cond); mtx_unlock(&range_lock); - - synced += length; - pjdlog_debug(2, "sync: (%p) Moving request to the free queue.", hio); QUEUE_INSERT2(hio, free); |