]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
ceph: handle race between vmtruncate and queuing cap snap
authorYan, Zheng <zyan@redhat.com>
Mon, 28 Aug 2017 07:41:28 +0000 (15:41 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Wed, 6 Sep 2017 17:56:53 +0000 (19:56 +0200)
commitc8fd0d37f81dd38e3f319f4938b45a5aaf0dfc58
treee72fcd3a9b1b53e7007cbedfcf39bfe12a06c393
parentfa0aa3b839b922c7bb911dbe2435da2a4e59d82d
ceph: handle race between vmtruncate and queuing cap snap

It's possible that we create a cap snap while there is pending
vmtruncate (truncate hasn't been processed by worker thread).
We should truncate dirty pages beyond capsnap->size in that case.

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/inode.c