]> git.karo-electronics.de Git - linux-beck.git/commit
Drivers: hv: hv_balloon: Fix a locking bug in the balloon driver
authorK. Y. Srinivasan <kys@microsoft.com>
Sat, 10 Jan 2015 07:54:30 +0000 (23:54 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 Jan 2015 17:17:57 +0000 (09:17 -0800)
commit22f88475b62ac826acae2f77c3e1bd9543e87b2a
treeb4cc8e6405803d731b4bcd70a20c37c36f7e40a5
parent79208c57da5311860f165b613c89b3f647e357cd
Drivers: hv: hv_balloon: Fix a locking bug in the balloon driver

We support memory hot-add in the Hyper-V balloon driver by hot adding an appropriately
sized and aligned region and controlling the on-lining of pages within that region
based on the pages that the host wants us to online. We do this because the
granularity and alignment requirements in Linux are different from what Windows
expects. The state to manage the onlining of pages needs to be correctly
protected. Fix this bug.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hv/hv_balloon.c