ceph: flush dirty inodes before proceeding with remount
authorJeff Layton <jlayton@kernel.org>
Tue, 7 May 2019 13:20:54 +0000 (09:20 -0400)
committerIlya Dryomov <idryomov@gmail.com>
Tue, 7 May 2019 17:43:05 +0000 (19:43 +0200)
commit00abf69dd24f4444d185982379c5cc3bb7b6d1fc
tree831e155862349aa631ef1cf0b17bde23fe190eff
parent4198aba4f431e2d2c24a11cdb9d53106fda00b43
ceph: flush dirty inodes before proceeding with remount

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.

Cc: stable@vger.kernel.org
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>
fs/ceph/super.c