]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ceph: flush dirty inodes before proceeding with remount
authorJeff Layton <jlayton@kernel.org>
Tue, 7 May 2019 13:20:54 +0000 (09:20 -0400)
committerBen Hutchings <ben@decadent.org.uk>
Mon, 23 Sep 2019 20:12:00 +0000 (21:12 +0100)
commit4c2fa9dab83f3bf8f584a6b51c151d04d0c02f66
treece727aeff6a49ae83129d731aff6ca647636faa7
parent21df0879fe7b4ea3eab3e149edb85fef83862dcb
ceph: flush dirty inodes before proceeding with remount

commit 00abf69dd24f4444d185982379c5cc3bb7b6d1fc upstream.

xfstest generic/452 was triggering a "Busy inodes after umount" warning.
ceph was allowing the mount to go read-only without first flushing out
dirty inodes in the cache. Ensure we sync out the filesystem before
allowing a remount to proceed.

Link: http://tracker.ceph.com/issues/39571
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: "Yan, Zheng" <zyan@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
fs/ceph/super.c