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:
parent
53d9b386eb
commit
e23d2d0187
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=211880
@ -1699,15 +1699,14 @@ sync_thread(void *arg __unused)
|
|||||||
strerror(hio->hio_errors[ncomp]));
|
strerror(hio->hio_errors[ncomp]));
|
||||||
goto free_queue;
|
goto free_queue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
synced += length;
|
||||||
free_queue:
|
free_queue:
|
||||||
mtx_lock(&range_lock);
|
mtx_lock(&range_lock);
|
||||||
rangelock_del(range_sync, offset, length);
|
rangelock_del(range_sync, offset, length);
|
||||||
if (range_regular_wait)
|
if (range_regular_wait)
|
||||||
cv_signal(&range_regular_cond);
|
cv_signal(&range_regular_cond);
|
||||||
mtx_unlock(&range_lock);
|
mtx_unlock(&range_lock);
|
||||||
|
|
||||||
synced += length;
|
|
||||||
|
|
||||||
pjdlog_debug(2, "sync: (%p) Moving request to the free queue.",
|
pjdlog_debug(2, "sync: (%p) Moving request to the free queue.",
|
||||||
hio);
|
hio);
|
||||||
QUEUE_INSERT2(hio, free);
|
QUEUE_INSERT2(hio, free);
|
||||||
|
Loading…
Reference in New Issue
Block a user