On 26/07/05 05:34PM, Raka Gunarto wrote: > Are your workloads okay to wait indefinitely on a call to open()? I > believe you can use the fanotify permission events (FAN_OPEN_PERM) to > queue the call and then poll for active handles until they close. > After the maintenance operations then respond FAN_ALLOW to the > requests in the queue.
To be honest, I don't have a concrete idea of how different workloads would behave if an `open()` were blocked for an extended period, but I think they should be alright. Could you elaborate a bit on what you mean by polling the active handles? My understanding is that, regardless of the enforcement mechanism (fanotify, eBPF, or something else) the challenges of determining that a mount has actually become inactive (and remained so for the grace period) are still there, right? same ebpf issues, what if the daemon didn't count the existing handles or somehow crashes and lose the count. These challenges are common; or am I overlooking something? --Ali _______________________________________________ Kernelnewbies mailing list [email protected] https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
