* [PATCH] orangefs_super: don't wait on service operation on system shutdown.
@ 2026-09-15 16:26 hubcap
2026-09-25 14:42 ` Christian Brauner
0 siblings, 1 reply; 2+ messages in thread
From: hubcap @ 2026-09-15 16:26 UTC (permalink / raw)
To: linux-fsdevel; +Cc: Mike Marshall
From: Mike Marshall <hubcap@omnibond.com>
If someone reboots the system while an orangefs filesystem is still
mounted, don't wait for the completion of an unmount service operation
that's never going to return.
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
---
fs/orangefs/super.c | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/fs/orangefs/super.c b/fs/orangefs/super.c
index 4ec7329b41f6..e6eedb2faef7 100644
--- a/fs/orangefs/super.c
+++ b/fs/orangefs/super.c
@@ -383,6 +383,24 @@ static int orangefs_unmount(int id, __s32 fs_id, const char *devname)
{
struct orangefs_kernel_op_s *op;
int r;
+
+ /*
+ * If someone reboots linux without unmounting orangefs first,
+ * don't bother firing off an unmount service operation that
+ * will never complete, or the whole system shutdown
+ * stalls for ORANGEFS_DEFAULT_OP_TIMEOUT_SECS.
+ */
+
+ if (!__is_daemon_in_service() ||
+ system_state == SYSTEM_HALT ||
+ system_state == SYSTEM_POWER_OFF ||
+ system_state == SYSTEM_RESTART) {
+ gossip_debug(GOSSIP_SUPER_DEBUG,
+ "%s: dirty unmount.\n",
+ __func__);
+ return 0;
+ }
+
op = op_alloc(ORANGEFS_VFS_OP_FS_UMOUNT);
if (!op)
return -ENOMEM;
--
2.55.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] orangefs_super: don't wait on service operation on system shutdown.
2026-09-15 16:26 [PATCH] orangefs_super: don't wait on service operation on system shutdown hubcap
@ 2026-09-25 14:42 ` Christian Brauner
0 siblings, 0 replies; 2+ messages in thread
From: Christian Brauner @ 2026-09-25 14:42 UTC (permalink / raw)
To: linux-fsdevel, hubcap; +Cc: Mike Marshall
On Tue, 15 Sep 2026 12:26:33 -0400, hubcap@kernel.org wrote:
> orangefs_super: don't wait on service operation on system shutdown.
Applied to the vfs-7.4.misc branch of the vfs/vfs.git tree.
Patches in the vfs-7.4.misc branch should appear in linux-next soon.
Please report any outstanding bugs that were missed during review in a
new review to the original patch series allowing us to drop it.
It's encouraged to provide Acked-bys and Reviewed-bys even though the
patch has now been applied. If possible patch trailers will be updated.
Note that commit hashes shown below are subject to change due to rebase,
trailer updates or similar. If in doubt, please check the listed branch.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git
branch: vfs-7.4.misc
[1/1] orangefs_super: don't wait on service operation on system shutdown.
https://git.kernel.org/vfs/vfs/c/6c21c52cea96
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-09-25 14:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-15 16:26 [PATCH] orangefs_super: don't wait on service operation on system shutdown hubcap
2026-09-25 14:42 ` Christian Brauner
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.