Resgroup refactor, part 3
* resgroup: provide helper function to wakeup a proc. * resgroup: provide helper function to check resWaiting. * resgroup: refine the logic in ResGroupWaitCancel(). * resgroup: error out in ResGroupHashFind() directly. * resgroup: error out in ResGroupHashRemove() directly. * resgroup: add an arg `grant` in wakeupSlots(). * resgroup: move resWaiting updates into WaitQueue helper funcs. * resgroup: cleanup the duplicate wakeup logic in ResGroupSlotRelease(). * resgroup: fix typo in function name groupAssignChunks(). * resgroup: rename groupAssignChunks() to groupRebalanceQuota(). * resgroup: polish comments for groupApplyMemCaps(). * resgroup: add comments for ResGroup{Caps,Opts}. * resgroup: cleanup obsolete declarations in resgroup.h * resgroup: use int32 instead of uint32 for self->memUsage. * resgroup: correct the slot cleanup in ResGroupWaitCancel(). * resgroup: do not error out in transaction callbacks.
Showing
想要评论请 注册 或 登录