4.10-stable review patch.  If anyone has any objections, please let me know.

------------------

From: Yisheng Xie <xieyishe...@huawei.com>

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")
Link: 
http://lkml.kernel.org/r/1486531318-35189-1-git-send-email-xieyishe...@huawei.com
Signed-off-by: Yisheng Xie <xieyishe...@huawei.com>
Acked-by: Minchan Kim <minc...@kernel.org>
Cc: Rafael Aquini <aqu...@redhat.com>
Cc: Konstantin Khlebnikov <koc...@gmail.com>
Cc: Gioh Kim <gi-oh....@profitbricks.com>
Cc: Vlastimil Babka <vba...@suse.cz>
Cc: Michal Hocko <mho...@kernel.org>
Cc: Michael S. Tsirkin <m...@redhat.com>
Cc: Jason Wang <jasow...@redhat.com>
Cc: Hanjun Guo <guohan...@huawei.com>
Cc: Xishi Qiu <qiuxi...@huawei.com>
Signed-off-by: Andrew Morton <a...@linux-foundation.org>
Signed-off-by: Linus Torvalds <torva...@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gre...@linuxfoundation.org>

---
 drivers/virtio/virtio_balloon.c |    4 ++++
 1 file changed, 4 insertions(+)

--- a/drivers/virtio/virtio_balloon.c
+++ b/drivers/virtio/virtio_balloon.c
@@ -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);
 }
 


Reply via email to