Fix maxinfo hang

dcb_count_by_usage did not iterate the list properly and would get stuck on the
first inactive DCB. Since this function is only called by maxinfo, it would be
the only one to get stuck.
This commit is contained in:
Markus Makela
2016-09-06 05:10:52 +03:00
parent 0aec0c483c
commit 3e08c248b9

View File

@ -3007,8 +3007,8 @@ dcb_count_by_usage(DCB_USAGE usage)
rval++;
break;
}
dcb = dcb->next;
}
dcb = dcb->next;
}
spinlock_release(&dcbspin);
return rval;