RFC: possible issue with kqueue
Damjan Jovanovic
damjan.jov at gmail.com
Wed Mar 31 05:46:04 UTC 2021
On Tue, Mar 30, 2021 at 8:14 PM John-Mark Gurney <jmg at funkthat.com> wrote:
> Emanuel Haupt wrote this message on Sat, Mar 27, 2021 at 13:10 +0100:
> > Can someone familiar with kqueue please comment on:
> >
> > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=254024
>
> Done:
> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=254024#c11
>
> Looks like the user wasn't force unmounting the FS. There really
> isn't any problem w/ kqueue, as a normal unmount is expected to be
> refused while files are open.
>
> I guess there COULD be a new flag added to file descriptors that
> flag them as being able to be closed upon unmount. Then when an
> unmount happens and only these flagged files remain, they are closed
> allowing the fs to unmount. But this is a new feature and independent
> of kqueue.
>
> --
> John-Mark Gurney Voice: +1 415 225 5579
>
>
>
Linux's inotify avoids this problem by monitoring filesystem paths instead
of file descriptors, which also has the advantage of not contributing to
the open file limit. Can we do something like that?
Damjan
More information about the freebsd-hackers
mailing list