Patch "orangefs: do not wait for timeout if umounting" has been added to the 4.9-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
orangefs: do not wait for timeout if umounting
to the 4.9-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
orangefs-do-not-wait-for-timeout-if-umounting.patch
and it can be found in the queue-4.9 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From foo@baz Thu Mar 22 14:40:23 CET 2018
From: Martin Brandenburg <[email protected]>
Date: Tue, 25 Apr 2017 15:38:07 -0400
Subject: orangefs: do not wait for timeout if umounting
From: Martin Brandenburg <[email protected]>
[ 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.
--- fs/orangefs/waitqueue.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)
fs/orangefs/waitqueue.c +8 -1
@@ -124,7 +124,14 @@ retry_servicing:gossip_debug (GOSSIP_WAIT_DEBUG ,"%s:client core is NOT in service.\n" , __func__); - timeout = op_timeout_secs *HZ ; +/* +* Don't wait for the userspace component to return if +* the filesystem is being umounted anyway. +*/ +if (op->upcall.type ==ORANGEFS_VFS_OP_FS_UMOUNT ) + timeout =0 ; +else + timeout = op_timeout_secs *HZ ; }spin_unlock (&orangefs_request_list_lock);
Patches currently in stable-queue which might be from [email protected] are
queue-4.9/orangefs-do-not-wait-for-timeout-if-umounting.patch