Actions
Bug #1311
closedAssertion on spin_unlock_wr_quick
Status:
Closed
Priority:
Low
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:
0%
Estimated time:
Description
Hi all,
In spin_unlock_wr_quick() function, gd->gd_spinlocks_wr is always
decreased, even when its value is equal to 0. This shouldn't happen, and
if it happens then something may be wrong. In the patch below, I've
added a KKASSERT before the decreasing as recommended by corecode.
Regards,
Antonio Huete
Updated by alexh over 15 years ago
I think this should be commited; it doesn't hurt and might avoid errors going by
unnoticed related to decreasing the spinlock count further than allowed.
Updated by dillon over 15 years ago
:
:Alex Hornung <ahornung@gmail.com> added the comment:
:
:I think this should be commited; it doesn't hurt and might avoid errors goi=
:ng by=20
:unnoticed related to decreasing the spinlock count further than allowed.
:
Yah, I'll commit it. Good catch.
-Matt
Matthew Dillon
<dillon@backplane.com>
Actions