orangefs: do not wait for timeout if umounting
authorMartin Brandenburg <martin@omnibond.com>
Tue, 25 Apr 2017 19:38:07 +0000 (15:38 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 24 Mar 2018 10:00:16 +0000 (11:00 +0100)
commit688b8451ee72f1ce5cc2e70297960597cfcf19ae
treec00ee90a2111fda0ec1bdbf62692c2682c7d996d
parentdfe9db1d7d40d277e79746bbcfc3046f64d57ba0
orangefs: do not wait for timeout if umounting

[ Upstream commit b5a9d61eebdd0016ccb383b25a5c3d04977a6549 ]

When the computer is turned off, all the processes are killed and then
all the filesystems are umounted.  OrangeFS should not wait for the
userspace daemon to come back in that case.

This only works for plain umount(2).  To actually take advantage of this
interactively, `umount -f' is needed; otherwise umount will issue a
statfs first, which will wait for the userspace daemon to come back.

Signed-off-by: Martin Brandenburg <martin@omnibond.com>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/orangefs/waitqueue.c