]> Pileus Git - ~andy/linux/commit
Drivers: hv: balloon: Fix a bug in the hot-add code
authorK. Y. Srinivasan <kys@microsoft.com>
Mon, 15 Jul 2013 05:38:11 +0000 (22:38 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Jul 2013 06:19:19 +0000 (23:19 -0700)
commited07ec93e83ec471d365ce084e43ad90fd205903
tree13a54d899c895549ea4b58521dbba90debbd284d
parent84672369ffb98a51d4ddf74c20a23636da3ad615
Drivers: hv: balloon: Fix a bug in the hot-add code

As we hot-add 128 MB chunks of memory, we wait to ensure that the memory
is onlined before attempting to hot-add the next chunk. If the udev rule for
memory hot-add is not executed within the allowed time, we would rollback the
state and abort further hot-add. Since the hot-add has succeeded and the only
failure is that the memory is not onlined within the allowed time, we should not
be rolling back the state. Fix this bug.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Cc: Stable <stable@vger.kernel.org>
Acked-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hv/hv_balloon.c