]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/xen.git/commit
credit: update timeslice under lock
authorJuergen Gross <jgross@suse.com>
Tue, 2 Feb 2016 13:03:06 +0000 (14:03 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 2 Feb 2016 13:03:06 +0000 (14:03 +0100)
commitf2c96ac4dedf4976e46de34c69c2cd8b289c4ef2
tree66873a1d11cc51fde1de25c5dfe5bb69f7788308
parent949fea109e5f51bb9cbf5f283eb9fac26186dfac
credit: update timeslice under lock

When updating the timeslice of the credit scheduler protect the
scheduler's private data by it's lock. Today a possible race could
result only in some weird scheduling decisions during one timeslice,
but further adjustments will need the lock anyway.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Dario Faggioli <dario.faggioli@citrix.com>
xen/common/sched_credit.c