Re: rms_rlock with non-sleepable locks held

Dag-Erling Smørgrav <[email protected]> Sat, 16 May 2026 16:13:06 +0200
Newsgroups gmane.os.freebsd.current
Message-ID <[email protected]>
Dag-Erling Smørgrav <[email protected]> writes:
> Konstantin Belousov <[email protected]> writes:
> > --- a/sys/kern/vfs_subr.c
> > +++ b/sys/kern/vfs_subr.c
> > @@ -6509,7 +6509,7 @@ vop_read_post(void *ap, int rc)
> >  	struct vop_read_args *a = ap;
> >  
> >  	if (!rc) {
> > -		VFS_KNOTE_LOCKED(a->a_vp, NOTE_READ);
> > +		VN_KNOTE_LOCKED(a->a_vp, NOTE_READ);
> Did you mean to use VN_KNOTE_UNLOCKED() here...

Probably not, as that resulted in a panic...

DES
-- 
Dag-Erling Smørgrav - [email protected]