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>
Sun, 4 Aug 2013 08:50:58 +0000 (16:50 +0800)
commit7b7295e5a040abf574110c14de67e6b463a1d921
tree75ba43878dccf043ae0b86c7d419fcc9911cd988
parent0ac7e44316a38c618afb851e05e0b71d8c83fef7
Drivers: hv: balloon: Fix a bug in the hot-add code

commit ed07ec93e83ec471d365ce084e43ad90fd205903 upstream.

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>
Acked-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hv/hv_balloon.c