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
This commit is contained in:
Pawel Jakub Dawidek 2010-08-27 14:10:25 +00:00
parent 53d9b386eb
commit e23d2d0187
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=211880

View File

@ -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);