]> xenbits.xensource.com Git - xen.git/commit
xen: Fix schedule()'s grabbing of the schedule lock
authorGeorge Dunlap <george.dunlap@eu.citrix.com>
Mon, 9 Jul 2012 09:24:44 +0000 (10:24 +0100)
committerGeorge Dunlap <george.dunlap@eu.citrix.com>
Mon, 9 Jul 2012 09:24:44 +0000 (10:24 +0100)
commit4e8f99fc6e93baff90fcff4993cc40f4be77b2df
tree991da118ed42d6e7ae96010e7d52a27c7aae7585
parentc279f333a7716b1b4e9f21beedaada751be1f2d5
xen: Fix schedule()'s grabbing of the schedule lock

Because the location of the lock can change between the time you read
it and the time you grab it, the per-cpu schedule locks need to check
after lock acquisition that the lock location hasn't changed, and
release and re-try if so.  This change was effected throughout the
source code, but one very important place was apparently missed: in
schedule() itself.

Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
Committed-by: Keir Fraser <keir@xen.org>
xen-unstable changeset:   25162:478bec603d3d
xen-unstable date:        Tue Apr 10 10:41:30 2012 +0100
xen/common/schedule.c