]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.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)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 14 Aug 2019 09:18:49 +0000 (11:18 +0200)
commite5dbc4a3a0ee1b40331f9be235b916d572754647
treef00c4e160e3f49274a8b037349a5c948a4742a0e
parent5e92cf8f0e90bb4e71e617fb31c7b432fb444e97
ceph: flush dirty inodes before proceeding with remount

BugLink: https://bugs.launchpad.net/bugs/1838576
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.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
fs/ceph/super.c