All of lore.kernel.org
 help / color / mirror / Atom feed
* Seeking guidance on detecting mount point inactivity
@ 2026-06-25 14:37 Ali Nasrolahi
  2026-06-30 14:21 ` Richard
  0 siblings, 1 reply; 7+ messages in thread
From: Ali Nasrolahi @ 2026-06-25 14:37 UTC (permalink / raw)
  To: Kernel Newbies


[-- Attachment #1.1: Type: text/plain, Size: 1277 bytes --]

Hello everyone,

I am working on a  problem involving managing some number of filesystem
mounts (~1000+) and determining when a mount becomes inactive to do some
maintenance.
To be specific, the goal is to detect when a mounted filesystem has no
remaining active file usage, and after it remains inactive for some period
(e.g. 10 seconds),
transition it into a state where new file opens are blocked so that
maintenance operations can safely proceed.
It must handle concurrent access from arbitrary applications, so
correctness under races is quite challenging.

I have looked into userspace based approaches and tools for observing file
usage, but they seem difficult to make fully correct in edge cases such
as process forking and descriptor inheritance, which makes it hard to
reliably implement the “last reference + grace period + safe transition”.

At this point I suspect this problem should be tied to kernel-level mount
lifecycle semantics rather than something that can be reliably done in
userspace alone.

However, I am not sure which mailing-list (if any) is appropriate to
present this kind of problem/question.
So, I am mainly looking for guidance on where to take this discussion to
seek some sort of advice.

Thanks a lot,
Ali

[-- Attachment #1.2: Type: text/html, Size: 1393 bytes --]

[-- Attachment #2: Type: text/plain, Size: 170 bytes --]

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

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

end of thread, other threads:[~2026-07-06  6:58 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-25 14:37 Seeking guidance on detecting mount point inactivity Ali Nasrolahi
2026-06-30 14:21 ` Richard
2026-07-03  9:05   ` Ali Nasrolahi
2026-07-03  9:54     ` Raka Gunarto
2026-07-05  5:04       ` Ali Nasrolahi
2026-07-05 16:34         ` Raka Gunarto
2026-07-06  6:57           ` Ali Nasrolahi

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.