diff options
author | David Vrabel <david.vrabel@citrix.com> | 2013-09-11 17:45:44 +0000 |
---|---|---|
committer | Stefano Stabellini <stefano.stabellini@eu.citrix.com> | 2013-09-11 17:52:58 +0000 |
commit | 2bad07ce28a0f61c1e776f99aa05f85e4e689e24 (patch) | |
tree | b13abf74f1f22eaf3d71e5c399c599f72fd77c82 /drivers/scsi/gdth_proc.c | |
parent | c3b7cb1fd8c1513be99fb3cfb7f39c5116d80dac (diff) | |
download | linux-2bad07ce28a0f61c1e776f99aa05f85e4e689e24.tar.bz2 |
xen/balloon: ensure preemption is disabled when using a scratch page
In decrease_reservation(), if the kernel is preempted between updating
the mapping and updating the p2m then they may end up using different
scratch pages.
Use get_balloon_scratch_page() and put_balloon_scratch_page() which use
get_cpu_var() and put_cpu_var() to correctly disable preemption.
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Tested-by: Sander Eikelenboom <linux@eikelenboom.it>
Diffstat (limited to 'drivers/scsi/gdth_proc.c')
0 files changed, 0 insertions, 0 deletions