Commit 9c57b580 authored by Yisheng Xie's avatar Yisheng Xie Committed by Linus Torvalds

mm balloon: umount balloon_mnt when removing vb device

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: b1123ea6 ("mm: balloon: use general non-lru movable page feature")
Link: default avatarYisheng Xie <>
Acked-by: default avatarMinchan Kim <>
Cc: Rafael Aquini <>
Cc: Konstantin Khlebnikov <>
Cc: Gioh Kim <>
Cc: Vlastimil Babka <>
Cc: Michal Hocko <>
Cc: Michael S. Tsirkin <>
Cc: Jason Wang <>
Cc: Hanjun Guo <>
Cc: Xishi Qiu <>
Cc: <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 85caa95b
......@@ -615,8 +615,12 @@ static void virtballoon_remove(struct virtio_device *vdev)
if (vb->vb_dev_info.inode)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment