pb: fix numDelayed accounting
we weren't decreasing when removing from the list.
This commit is contained in:
parent
12be1568d0
commit
bf21b7006c
|
@ -307,6 +307,7 @@ pb_cache_manager_create_buffer(struct pb_manager *_mgr,
|
||||||
|
|
||||||
if(buf) {
|
if(buf) {
|
||||||
LIST_DEL(&buf->head);
|
LIST_DEL(&buf->head);
|
||||||
|
--mgr->numDelayed;
|
||||||
pipe_mutex_unlock(mgr->mutex);
|
pipe_mutex_unlock(mgr->mutex);
|
||||||
/* Increase refcount */
|
/* Increase refcount */
|
||||||
pipe_reference_init(&buf->base.base.reference, 1);
|
pipe_reference_init(&buf->base.base.reference, 1);
|
||||||
|
|
Loading…
Reference in New Issue