Use short int consistently for unlocks. Check that the waits and unlocks don't overflow.
Two small changes:
-
task->nr_unlock_tasksis ashort intso we should be consistent with the types inscheduler_set_unlocks(). - When debugging, check that we don't overflow the number of
waitorunlocks.
As I am about to introduce some gravity tasks that will have a lot of unlocks I would like to be safe first.