ceph: fix possible long time wait during umount
authorXiubo Li <xiubli@redhat.com>
Wed, 4 Dec 2019 06:27:18 +0000 (01:27 -0500)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 27 Jan 2020 15:53:39 +0000 (16:53 +0100)
commit07edc0571ef1b13e124b462aca8d09f79809d6dd
tree0bbd383d4d5ec380fc16e7ff5c94f5d7853a8ffe
parent5d47648fe95412beffe2089d6d6484adb5ea0f96
ceph: fix possible long time wait during umount

During umount, if there has no any unsafe request in the mdsc and
some requests still in-flight and not got reply yet, and if the
rest requets are all safe ones, after that even all of them in mdsc
are unregistered, the umount must wait until after mount_timeout
seconds anyway.

Signed-off-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/mds_client.c