Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > muc.lists.freebsd.current > #70180

Re: rms_rlock with non-sleepable locks held

From Dag-Erling Smørgrav <des@FreeBSD.org>
Newsgroups muc.lists.freebsd.current
Subject Re: rms_rlock with non-sleepable locks held
Date 2026-05-16 15:48 +0200
Organization Newsgate at muc.de e.V.
Message-ID <865x4nea98.fsf@ltc.des.dev> (permalink)
References <> <aghCJ5Ean1zhICbS@kib.kiev.ua>

Show all headers | View raw


Konstantin Belousov <kostikbel@gmail.com> writes:> diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c
> index b3a6e8ce2e02..d19776940bc3 100644
> --- 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...

>  		INOTIFY(a->a_vp, IN_ACCESS);
>  	}
>  }
> @@ -6520,7 +6520,7 @@ vop_read_pgcache_post(void *ap, int rc)
>  	struct vop_read_pgcache_args *a = ap;
>  
>  	if (rc == 0) {
> -		VFS_KNOTE_LOCKED(a->a_vp, NOTE_READ);
> +		VN_KNOTE_UNLOCKED(a->a_vp, NOTE_READ);

...like you do here?

>  		INOTIFY(a->a_vp, IN_ACCESS);
>  	}
>  }
>

DES
-- 
Dag-Erling Smørgrav - des@FreeBSD.org


--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de

Back to muc.lists.freebsd.current | Previous | Next | Find similar


Thread

Re: rms_rlock with non-sleepable locks held Dag-Erling Smørgrav <des@FreeBSD.org> - 2026-05-16 15:48 +0200

csiph-web