Date: Fri, 18 May 2012 18:35:09 +0000 (UTC) From: Kirk McKusick <mckusick@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r235619 - head/sys/sys Message-ID: <201205181835.q4IIZ9nO068718@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mckusick Date: Fri May 18 18:35:09 2012 New Revision: 235619 URL: http://svn.freebsd.org/changeset/base/235619 Log: Update comment to document that the vnode free-list mutex needs to be held when updating mnt_activevnodelist and mnt_activevnodelistsize. Modified: head/sys/sys/mount.h Modified: head/sys/sys/mount.h ============================================================================== --- head/sys/sys/mount.h Fri May 18 18:34:29 2012 (r235618) +++ head/sys/sys/mount.h Fri May 18 18:35:09 2012 (r235619) @@ -148,6 +148,7 @@ struct vfsopt { * Lock reference: * m - mountlist_mtx * i - interlock + * v - vnode freelist mutex * * Unmarked fields are considered stable as long as a ref is held. * @@ -164,8 +165,8 @@ struct mount { int mnt_ref; /* (i) Reference count */ struct vnodelst mnt_nvnodelist; /* (i) list of vnodes */ int mnt_nvnodelistsize; /* (i) # of vnodes */ - struct vnodelst mnt_activevnodelist; /* (i) list of active vnodes */ - int mnt_activevnodelistsize;/* (i) # of active vnodes */ + struct vnodelst mnt_activevnodelist; /* (v) list of active vnodes */ + int mnt_activevnodelistsize;/* (v) # of active vnodes */ int mnt_writeopcount; /* (i) write syscalls pending */ int mnt_kern_flag; /* (i) kernel only flags */ uint64_t mnt_flag; /* (i) flags shared with user */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201205181835.q4IIZ9nO068718>