Skip to contentSkip to conversation

Patch "mm balloon: umount balloon_mnt when removing vb device" has been added to the 4.9-stable tree

PATCH [email protected] 1 participant 1 message Mar 8, 2017

Subsystems (3)
lore
Share & tools
lore

[email protected]

author maintainer Applied
#0 lore raw

This is a note to let you know that I've just added the patch titled

mm balloon: umount balloon_mnt when removing vb device

to the 4.9-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
mm-balloon-umount-balloon_mnt-when-removing-vb-device.patch
and it can be found in the queue-4.9 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.

Quoted 1 line

From 9c57b5808c625f4fc93da330b932647eaff321f7 Mon Sep 17 00:00:00 2001

From: Yisheng Xie <[email protected]>
Date: Fri, 24 Feb 2017 15:00:40 -0800
Subject: mm balloon: umount balloon_mnt when removing vb device

From: Yisheng Xie <[email protected]>

commit 9c57b5808c625f4fc93da330b932647eaff321f7 upstream.

With CONFIG_BALLOON_COMPACTION=y the kernel will mount balloon_mnt for balloon page migration when we probe a virtio_balloon device. However we do not unmount it when removing the device. Fix this.

Fixes b1123ea6d3b3 ("mm: balloon: use general non-lru movable page feature")
Cc Rafael Aquini <[email protected]>
Cc Konstantin Khlebnikov <[email protected]>
Cc Gioh Kim <[email protected]>
Cc Vlastimil Babka <[email protected]>
Cc Michal Hocko <[email protected]>
Cc Michael S. Tsirkin <[email protected]>
Cc Jason Wang <[email protected]>
Cc Hanjun Guo <[email protected]>
Cc Xishi Qiu <[email protected]>
---
 drivers/virtio/virtio_balloon.c |    4 ++++
 1 file changed, 4 insertions(+)
drivers/virtio/virtio_balloon.c +4 -0
@@ -615,8 +615,12 @@ static void virtballoon_remove(struct vi
 	cancel_work_sync(&vb->update_balloon_stats_work);
 
 	remove_common(vb);
+#ifdef CONFIG_BALLOON_COMPACTION
 	if (vb->vb_dev_info.inode)
 		iput(vb->vb_dev_info.inode);
+
+	kern_unmount(balloon_mnt);
+#endif
 	kfree(vb);
 }
 

Patches currently in stable-queue which might be from [email protected] are

queue-4.9/mm-balloon-umount-balloon_mnt-when-removing-vb-device.patch