linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC 0/3] Shut down frozen filesystems on last unmount
@ 2022-11-29 23:07 Andreas Gruenbacher
  2022-11-29 23:07 ` [PATCH 1/3] fs: Add activate_super function Andreas Gruenbacher
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Andreas Gruenbacher @ 2022-11-29 23:07 UTC (permalink / raw)
  To: Alexander Viro; +Cc: Andreas Gruenbacher, Josef Bacik, Jan Kara, linux-fsdevel

Hello,

currently, when a frozen filesystem is unmouted, it turns into a zombie
rather than being shut down; it can only be shut down after remounting
and thawing it.  That's silly for local filesystems, but it's worse for
filesystems like gfs2 which freeze the filesystem on all nodes when
fsfreeze is called on any of the nodes: there, the nodes that didn't
initiate the freeze cannot shut down the filesystem at all.

This is a non-working, first shot at allowing filesystems to shut down
on the last unmount.  Could you please have a look to let me know if
something like this makes sense?

The three patches in this series can be found at the tail of this tree:

https://git.kernel.org/pub/scm/linux/kernel/git/gfs2/linux-gfs2.git/log/?h=freeze%2bumount

The vfs patches apply directly on top of v6.1-rc5 -ish kernels.

The gfs2 patch depends on previous patches in the above tree, so please
grab that if you want the full context.

Thanks a lot,
Andreas

Andreas Gruenbacher (3):
  fs: Add activate_super function
  fs: Introduce { freeze, thaw }_active_super functions
  gfs2: Shut down frozen filesystem on last unmount

 fs/gfs2/glops.c    | 17 ++-------
 fs/gfs2/super.c    | 27 ++++++++++----
 fs/super.c         | 89 +++++++++++++++++++++++++++++++++++++++++-----
 include/linux/fs.h |  3 ++
 4 files changed, 108 insertions(+), 28 deletions(-)

-- 
2.38.1


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-01-12 19:19 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-29 23:07 [RFC 0/3] Shut down frozen filesystems on last unmount Andreas Gruenbacher
2022-11-29 23:07 ` [PATCH 1/3] fs: Add activate_super function Andreas Gruenbacher
2022-11-29 23:07 ` [PATCH 2/3] fs: Introduce { freeze, thaw }_active_super functions Andreas Gruenbacher
2023-01-12 17:54   ` Al Viro
2022-11-29 23:07 ` [PATCH 3/3] gfs2: Shut down frozen filesystem on last unmount Andreas Gruenbacher
2023-01-12 19:07   ` Al Viro
2023-01-12 12:25 ` [RFC 0/3] Shut down frozen filesystems " Jan Kara

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).