]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
9p: avoid attaching writeback_fid on mmap with type PRIVATE
authorChengguang Xu <cgxu519@zoho.com.cn>
Tue, 20 Aug 2019 10:03:25 +0000 (18:03 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Oct 2019 20:42:10 +0000 (13:42 -0700)
commit16a56a80c71720a055a815d4cb078955dec025ec
treef22506d70ef946224f9c6c0e93a0431c319b74c3
parent14793a8ff6239f30073960f4016166580aa56013
9p: avoid attaching writeback_fid on mmap with type PRIVATE

[ Upstream commit c87a37ebd40b889178664c2c09cc187334146292 ]

Currently on mmap cache policy, we always attach writeback_fid
whether mmap type is SHARED or PRIVATE. However, in the use case
of kata-container which combines 9p(Guest OS) with overlayfs(Host OS),
this behavior will trigger overlayfs' copy-up when excute command
inside container.

Link: http://lkml.kernel.org/r/20190820100325.10313-1-cgxu519@zoho.com.cn
Signed-off-by: Chengguang Xu <cgxu519@zoho.com.cn>
Signed-off-by: Dominique Martinet <dominique.martinet@cea.fr>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/9p/vfs_file.c