[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200205163402.42627-1-david@redhat.com>
Date: Wed, 5 Feb 2020 17:33:59 +0100
From: David Hildenbrand <david@...hat.com>
To: linux-kernel@...r.kernel.org
Cc: linux-mm@...ck.org, virtualization@...ts.linux-foundation.org,
David Hildenbrand <david@...hat.com>,
Alexander Duyck <alexander.h.duyck@...ux.intel.com>,
David Rientjes <rientjes@...gle.com>,
Jason Wang <jasowang@...hat.com>,
Liang Li <liang.z.li@...el.com>,
"Michael S. Tsirkin" <mst@...hat.com>,
Michal Hocko <mhocko@...nel.org>,
Nadav Amit <namit@...are.com>,
Tyler Sanderson <tysand@...gle.com>,
Wei Wang <wei.w.wang@...el.com>
Subject: [PATCH v1 0/3] virtio-balloon: Fixes + switch back to OOM handler
Two fixes for issues I stumbled over while working on patch #3.
Switch back to the good ol' OOM handler for VIRTIO_BALLOON_F_DEFLATE_ON_OOM
as the switch to the shrinker introduce some undesired side effects. Keep
the shrinker in place to handle VIRTIO_BALLOON_F_FREE_PAGE_HINT.
Lengthy discussion under [1].
I tested with QEMU and "deflate-on-oom=on". Works as expected. Did not
test the shrinker for VIRTIO_BALLOON_F_FREE_PAGE_HINT, as it is
hard to trigger (only when migrating a VM, and even then, it might not
trigger).
[1] https://www.spinics.net/lists/linux-virtualization/msg40863.html
David Hildenbrand (3):
virtio-balloon: Fix memory leak when unloading while hinting is in
progress
virtio_balloon: Fix memory leaks on errors in virtballoon_probe()
virtio-balloon: Switch back to OOM handler for
VIRTIO_BALLOON_F_DEFLATE_ON_OOM
drivers/virtio/virtio_balloon.c | 124 +++++++++++++++-----------------
1 file changed, 57 insertions(+), 67 deletions(-)
--
2.24.1
Powered by blists - more mailing lists