]> git.baikalelectronics.ru Git - kernel.git/commit
virtio_balloon: fix increment of vb->num_pfns in fill_balloon()
authorJan Stancek <jstancek@redhat.com>
Fri, 1 Dec 2017 09:50:28 +0000 (10:50 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 1 Dec 2017 14:55:45 +0000 (16:55 +0200)
commite0571ed12c43d49c802027f905b40760bb06aef1
tree1b3ad23a6cab1524eea800de336efc0f6bd9d277
parent71f3170e870a982885599d289a14bd3b6a6491f3
virtio_balloon: fix increment of vb->num_pfns in fill_balloon()

commit 23e625353775 ("virtio_balloon: fix deadlock on OOM")
changed code to increment vb->num_pfns before call to
set_page_pfns(), which used to happen only after.

This patch fixes boot hang for me on ppc64le KVM guests.

Fixes: 23e625353775 ("virtio_balloon: fix deadlock on OOM")
Cc: Michael S. Tsirkin <mst@redhat.com>
Cc: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Wei Wang <wei.w.wang@intel.com>
Cc: stable@vger.kernel.org
Signed-off-by: Jan Stancek <jstancek@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/virtio/virtio_balloon.c