Source-Changes-HG archive

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

[src/trunk]: src/sys/fs/puffs Add a comment that pn_sizemtx should be useless...



details:   https://anonhg.NetBSD.org/src/rev/d4a1710ad62b
branches:  trunk
changeset: 770718:d4a1710ad62b
user:      hannken <hannken%NetBSD.org@localhost>
date:      Sun Oct 30 13:24:13 2011 +0000

description:
Add a comment that pn_sizemtx should be useless as VOP_GETATTR now
needs a shared lock at least.

diffstat:

 sys/fs/puffs/puffs_vnops.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r f3da2849a27c -r d4a1710ad62b sys/fs/puffs/puffs_vnops.c
--- a/sys/fs/puffs/puffs_vnops.c        Sun Oct 30 12:12:21 2011 +0000
+++ b/sys/fs/puffs/puffs_vnops.c        Sun Oct 30 13:24:13 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: puffs_vnops.c,v 1.160 2011/10/19 01:39:29 manu Exp $   */
+/*     $NetBSD: puffs_vnops.c,v 1.161 2011/10/30 13:24:13 hannken Exp $        */
 
 /*
  * Copyright (c) 2005, 2006, 2007  Antti Kantee.  All Rights Reserved.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: puffs_vnops.c,v 1.160 2011/10/19 01:39:29 manu Exp $");
+__KERNEL_RCSID(0, "$NetBSD: puffs_vnops.c,v 1.161 2011/10/30 13:24:13 hannken Exp $");
 
 #include <sys/param.h>
 #include <sys/buf.h>
@@ -848,6 +848,9 @@
         * data is replaced by zeroes). This can be removed if
         * we decide one day that VOP_GETATTR must operate on 
         * a locked vnode.
+        *
+        * XXX Should be useless now that VOP_GETATTR has been
+        *     fixed to always require a shared lock at least.
         */
        mutex_enter(&pn->pn_sizemtx);
 



Home | Main Index | Thread Index | Old Index