pb: fix numDelayed accounting

we weren't decreasing when removing from the list.
This commit is contained in:
Dave Airlie 2010-10-05 19:08:41 +10:00
parent 12be1568d0
commit bf21b7006c
1 changed files with 1 additions and 0 deletions

View File

@ -307,6 +307,7 @@ pb_cache_manager_create_buffer(struct pb_manager *_mgr,
if(buf) {
LIST_DEL(&buf->head);
--mgr->numDelayed;
pipe_mutex_unlock(mgr->mutex);
/* Increase refcount */
pipe_reference_init(&buf->base.base.reference, 1);