Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/miscfs/genfs v_interlock -> vmobjlock



details:   https://anonhg.NetBSD.org/src/rev/1ac1581092ae
branches:  trunk
changeset: 1007653:1ac1581092ae
user:      ad <ad%NetBSD.org@localhost>
date:      Mon Feb 24 20:49:51 2020 +0000

description:
v_interlock -> vmobjlock

diffstat:

 sys/miscfs/genfs/genfs_io.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r cc802c079248 -r 1ac1581092ae sys/miscfs/genfs/genfs_io.c
--- a/sys/miscfs/genfs/genfs_io.c       Mon Feb 24 20:47:47 2020 +0000
+++ b/sys/miscfs/genfs/genfs_io.c       Mon Feb 24 20:49:51 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: genfs_io.c,v 1.86 2020/02/23 15:46:41 ad Exp $ */
+/*     $NetBSD: genfs_io.c,v 1.87 2020/02/24 20:49:51 ad Exp $ */
 
 /*
  * Copyright (c) 1982, 1986, 1989, 1993
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: genfs_io.c,v 1.86 2020/02/23 15:46:41 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: genfs_io.c,v 1.87 2020/02/24 20:49:51 ad Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -1916,7 +1916,7 @@
 
        spoff = trunc_page(off);
        epoff = round_page(off + len);
-       mutex_enter(vp->v_interlock);
+       rw_enter(vp->v_uobj.vmobjlock, RW_WRITER);
        error = VOP_PUTPAGES(vp, spoff, epoff, pgoflags);
        if (error) {
                return error;



Home | Main Index | Thread Index | Old Index