CVS commit: [ad-namecache] src/sys/sys

2020-03-22 Thread Andrew Doran
Module Name:src Committed By: ad Date: Sun Mar 22 14:23:27 UTC 2020 Modified Files: src/sys/sys [ad-namecache]: vnode_impl.h Log Message: Keeping the namecache lock next to the vnode lock has a repeatable detrimental effect. So shuffle some stuff around in vnode_impl to s

CVS commit: [ad-namecache] src/sys/kern

2020-03-22 Thread Andrew Doran
Module Name:src Committed By: ad Date: Sun Mar 22 14:16:50 UTC 2020 Modified Files: src/sys/kern [ad-namecache]: vfs_cache.c Log Message: Resurrect the counter stuff from HEAD, which tries to deal with 32-bit counter rollover. Drive it by sysctl and/or callout every 5 min

CVS commit: [ad-namecache] src/sys/kern

2020-03-21 Thread Andrew Doran
Module Name:src Committed By: ad Date: Sun Mar 22 01:58:22 UTC 2020 Modified Files: src/sys/kern [ad-namecache]: vfs_cache.c Log Message: - rb_tree_insert_node() refuses to insert duplicate nodes. It always returns a pointer to the current node in the tree for the given

CVS commit: [ad-namecache] src/sys/kern

2020-03-21 Thread Andrew Doran
Module Name:src Committed By: ad Date: Sun Mar 22 00:34:31 UTC 2020 Modified Files: src/sys/kern [ad-namecache]: vfs_cache.c Log Message: - Fold the "doingcache" conditional into the max length conditional. - Mark the tunables __read_mostly. To generate a diff of this co

CVS commit: [ad-namecache] src/sys/sys

2020-03-21 Thread Andrew Doran
Module Name:src Committed By: ad Date: Sat Mar 21 22:04:17 UTC 2020 Modified Files: src/sys/sys [ad-namecache]: namei.src Log Message: Move nc_key up, so cache_lookup_entry() only needs to touch one cache line at each step. To generate a diff of this commit: cvs rdiff -u

CVS commit: [ad-namecache] src/sys/kern

2020-03-21 Thread Andrew Doran
Module Name:src Committed By: ad Date: Sat Mar 21 22:00:56 UTC 2020 Modified Files: src/sys/kern [ad-namecache]: vfs_cache.c Log Message: - Include sys/types.h for vax. - Use macro versions of kpreempt_disable()/enable(). - Use atomic_load_relaxed(). - Make cache_key() inl

CVS commit: [ad-namecache] src/sys/kern

2020-03-10 Thread Andrew Doran
Module Name:src Committed By: ad Date: Tue Mar 10 21:53:46 UTC 2020 Modified Files: src/sys/kern [ad-namecache]: vfs_cache.c Log Message: __read_mostly -> const in one place To generate a diff of this commit: cvs rdiff -u -r1.126.2.12 -r1.126.2.13 src/sys/kern/vfs_cache.

CVS commit: [ad-namecache] src/sys

2020-03-04 Thread Andrew Doran
Module Name:src Committed By: ad Date: Wed Mar 4 20:26:29 UTC 2020 Modified Files: src/sys/rump/include/rump [ad-namecache]: rump_namei.h src/sys/sys [ad-namecache]: namei.h Log Message: Regen. To generate a diff of this commit: cvs rdiff -u -r1.37.2.4 -r1.37.2.

CVS commit: [ad-namecache] src/sys/sys

2020-03-04 Thread Andrew Doran
Module Name:src Committed By: ad Date: Wed Mar 4 20:21:05 UTC 2020 Modified Files: src/sys/sys [ad-namecache]: namei.src Log Message: Fix a comment. To generate a diff of this commit: cvs rdiff -u -r1.47.2.6 -r1.47.2.7 src/sys/sys/namei.src Please note that diffs are n

CVS commit: [ad-namecache] src/sys/kern

2020-03-03 Thread Andrew Doran
Module Name:src Committed By: ad Date: Tue Mar 3 22:30:57 UTC 2020 Modified Files: src/sys/kern [ad-namecache]: vfs_lookup.c Log Message: lookup_fastforward(): bail out on mount -o union To generate a diff of this commit: cvs rdiff -u -r1.212.4.10 -r1.212.4.11 src/sys/k

CVS commit: [ad-namecache] src/sys/kern

2020-02-29 Thread Andrew Doran
Module Name:src Committed By: ad Date: Sat Feb 29 22:00:03 UTC 2020 Modified Files: src/sys/kern [ad-namecache]: vfs_vnops.c Log Message: Back out experimental change - not ready for LK_SHARED on VOP_OPEN() just yet. To generate a diff of this commit: cvs rdiff -u -r1.20

CVS commit: [ad-namecache] src/sys

2020-02-29 Thread Andrew Doran
Module Name:src Committed By: ad Date: Sat Feb 29 21:50:45 UTC 2020 Modified Files: src/sys/arch/arm/arm32 [ad-namecache]: pmap.c src/sys/arch/i386/include [ad-namecache]: rwlock.h src/sys/kern [ad-namecache]: kern_idle.c uipc_usrreq.c Log Message: Sync wit

CVS commit: [ad-namecache] src/sys/dev

2020-02-29 Thread Andrew Doran
Module Name:src Committed By: ad Date: Sat Feb 29 20:19:17 UTC 2020 Modified Files: src/sys/dev [ad-namecache]: DEVNAMES clockctl.c fss.c ld.c vnd.c src/sys/dev/acpi [ad-namecache]: acpi_mcfg.c acpi_mcfg.h files.acpi sdhc_acpi.c xhci_acpi.c src/s

CVS commit: [ad-namecache] src/sys/kern

2020-02-23 Thread Andrew Doran
Module Name:src Committed By: ad Date: Sun Feb 23 19:14:03 UTC 2020 Modified Files: src/sys/kern [ad-namecache]: vfs_vnode.c Log Message: Turns out there's no point adjusting v_holdcnt with atomics. To generate a diff of this commit: cvs rdiff -u -r1.105.2.7 -r1.105.2.8

CVS commit: [ad-namecache] src/sys/kern

2020-02-16 Thread Andrew Doran
Module Name:src Committed By: ad Date: Sun Feb 16 22:00:53 UTC 2020 Modified Files: src/sys/kern [ad-namecache]: vfs_cache.c Log Message: Comments. To generate a diff of this commit: cvs rdiff -u -r1.126.2.11 -r1.126.2.12 src/sys/kern/vfs_cache.c Please note that diffs

CVS commit: [ad-namecache] src/sys

2020-01-25 Thread Andrew Doran
Module Name:src Committed By: ad Date: Sat Jan 25 21:45:00 UTC 2020 Modified Files: src/sys/kern [ad-namecache]: kern_rwlock.c kern_synch.c src/sys/rump/include/rump [ad-namecache]: rump_namei.h src/sys/sys [ad-namecache]: rwlock.h Log Message: Remove unint

CVS commit: [ad-namecache] src/sys/kern

2020-01-25 Thread Andrew Doran
Module Name:src Committed By: ad Date: Sat Jan 25 18:42:24 UTC 2020 Modified Files: src/sys/kern [ad-namecache]: vfs_cwd.c Log Message: Add a missing membar to previous. To generate a diff of this commit: cvs rdiff -u -r1.4.62.1 -r1.4.62.2 src/sys/kern/vfs_cwd.c Please

CVS commit: [ad-namecache] src/sys

2020-01-25 Thread Andrew Doran
Module Name:src Committed By: ad Date: Sat Jan 25 15:54:04 UTC 2020 Modified Files: src/sys/compat/netbsd32 [ad-namecache]: netbsd32_fs.c src/sys/kern [ad-namecache]: kern_exec.c kern_proc.c uipc_usrreq.c vfs_cwd.c vfs_getcwd.c vfs_lookup.c vfs_mount.c v

CVS commit: [ad-namecache] src/sys/sys

2020-01-24 Thread Andrew Doran
Module Name:src Committed By: ad Date: Fri Jan 24 16:49:12 UTC 2020 Modified Files: src/sys/sys [ad-namecache]: namei.h Log Message: Regen. To generate a diff of this commit: cvs rdiff -u -r1.103.2.4 -r1.103.2.5 src/sys/sys/namei.h Please note that diffs are not public

CVS commit: [ad-namecache] src/sys

2020-01-24 Thread Andrew Doran
Module Name:src Committed By: ad Date: Fri Jan 24 16:48:59 UTC 2020 Modified Files: src/sys/fs/tmpfs [ad-namecache]: tmpfs_subr.c tmpfs_vfsops.c src/sys/kern [ad-namecache]: vfs_cache.c src/sys/sys [ad-namecache]: namei.src src/sys/ufs/ffs [ad-nameca

CVS commit: [ad-namecache] src/sys/kern

2020-01-24 Thread Andrew Doran
Module Name:src Committed By: ad Date: Fri Jan 24 16:05:37 UTC 2020 Modified Files: src/sys/kern [ad-namecache]: vfs_lookup.c Log Message: Add a comment. To generate a diff of this commit: cvs rdiff -u -r1.212.4.7 -r1.212.4.8 src/sys/kern/vfs_lookup.c Please note that d

CVS commit: [ad-namecache] src/sys

2020-01-24 Thread Andrew Doran
Module Name:src Committed By: ad Date: Fri Jan 24 16:05:23 UTC 2020 Modified Files: src/sys/kern [ad-namecache]: vfs_subr.c vfs_vnode.c src/sys/miscfs/genfs [ad-namecache]: genfs_vnops.c src/sys/sys [ad-namecache]: vnode.h vnode_impl.h Log Message: vnodes:

CVS commit: [ad-namecache] src/sys/sys

2020-01-23 Thread Andrew Doran
Module Name:src Committed By: ad Date: Thu Jan 23 21:24:54 UTC 2020 Modified Files: src/sys/sys [ad-namecache]: fstypes.h Log Message: Add an IMNT_NCLOOKUP flag to indicate the FS is OK with lookup directly from cache. To generate a diff of this commit: cvs rdiff -u -r1.

CVS commit: [ad-namecache] src/sys/kern

2020-01-23 Thread Andrew Doran
Module Name:src Committed By: ad Date: Thu Jan 23 21:23:56 UTC 2020 Modified Files: src/sys/kern [ad-namecache]: vfs_lookup.c Log Message: Improve an assertion. To generate a diff of this commit: cvs rdiff -u -r1.212.4.6 -r1.212.4.7 src/sys/kern/vfs_lookup.c Please note

CVS commit: [ad-namecache] src/sys/kern

2020-01-23 Thread Andrew Doran
Module Name:src Committed By: ad Date: Thu Jan 23 19:28:39 UTC 2020 Modified Files: src/sys/kern [ad-namecache]: vfs_vnode.c Log Message: vcache_reclaim(): purge namecache immediately after setting vnode to VS_RECLAIMED. To generate a diff of this commit: cvs rdiff -u -r

CVS commit: [ad-namecache] src/sys/kern

2020-01-23 Thread Andrew Doran
Module Name:src Committed By: ad Date: Thu Jan 23 12:33:18 UTC 2020 Modified Files: src/sys/kern [ad-namecache]: vfs_cache.c Log Message: Update comments. To generate a diff of this commit: cvs rdiff -u -r1.126.2.9 -r1.126.2.10 src/sys/kern/vfs_cache.c Please note that

CVS commit: [ad-namecache] src/sys/kern

2020-01-23 Thread Andrew Doran
Module Name:src Committed By: ad Date: Thu Jan 23 12:21:01 UTC 2020 Modified Files: src/sys/kern [ad-namecache]: vfs_lookup.c Log Message: - Change style of new code slightly to match rest of file. - NFS lookup needs to cross mountpoint too. - Update comments. To generat

CVS commit: [ad-namecache] src/sys/kern

2020-01-23 Thread Andrew Doran
Module Name:src Committed By: ad Date: Thu Jan 23 12:17:08 UTC 2020 Modified Files: src/sys/kern [ad-namecache]: kern_synch.c Log Message: Back out previous. To generate a diff of this commit: cvs rdiff -u -r1.334.2.2 -r1.334.2.3 src/sys/kern/kern_synch.c Please note th

CVS commit: [ad-namecache] src/sys/kern

2020-01-22 Thread Andrew Doran
Module Name:src Committed By: ad Date: Wed Jan 22 12:10:46 UTC 2020 Modified Files: src/sys/kern [ad-namecache]: vfs_lookup.c Log Message: Fast-forward through the namecache was stopping one component too soon when there was an obstacle, e.g. a mountpoint. The obstacle sh

CVS commit: [ad-namecache] src/sys/miscfs/nullfs

2020-01-22 Thread Andrew Doran
Module Name:src Committed By: ad Date: Wed Jan 22 12:04:36 UTC 2020 Modified Files: src/sys/miscfs/nullfs [ad-namecache]: null_vfsops.c Log Message: Copy the IMNT_SHRLOOKUP flag from lowerrootvp's mount. To generate a diff of this commit: cvs rdiff -u -r1.96.2.1 -r1.96.2

CVS commit: [ad-namecache] src/sys/miscfs/genfs

2020-01-22 Thread Andrew Doran
Module Name:src Committed By: ad Date: Wed Jan 22 12:00:18 UTC 2020 Modified Files: src/sys/miscfs/genfs [ad-namecache]: genfs_vnops.c Log Message: Make sure LK_UPGRADE always comes with LK_NOWAIT; dropping the lock in here is unclean and I wonder if it could screw over fs

CVS commit: [ad-namecache] src/sys

2020-01-22 Thread Andrew Doran
Module Name:src Committed By: ad Date: Wed Jan 22 11:40:17 UTC 2020 Modified Files: src/sys/arch/amd64/amd64 [ad-namecache]: genassym.cf lock_stubs.S src/sys/arch/amd64/include [ad-namecache]: rwlock.h src/sys/arch/i386/i386 [ad-namecache]: genassym.cf lock_

CVS commit: [ad-namecache] src/sys/sys

2020-01-19 Thread Andrew Doran
Module Name:src Committed By: ad Date: Sun Jan 19 21:24:01 UTC 2020 Modified Files: src/sys/sys [ad-namecache]: namei.h Log Message: Regen. To generate a diff of this commit: cvs rdiff -u -r1.103.2.3 -r1.103.2.4 src/sys/sys/namei.h Please note that diffs are not public

CVS commit: [ad-namecache] src/sys/kern

2020-01-19 Thread Andrew Doran
Module Name:src Committed By: ad Date: Sun Jan 19 21:23:36 UTC 2020 Modified Files: src/sys/kern [ad-namecache]: vfs_syscalls.c vfs_vnops.c Log Message: Use LOCKLEAF in the few cases it's useful for ffs/tmpfs/nullfs. Others need to be checked. To generate a diff of this

CVS commit: [ad-namecache] src/sys

2020-01-19 Thread Andrew Doran
Module Name:src Committed By: ad Date: Sun Jan 19 21:21:56 UTC 2020 Modified Files: src/sys/fs/cd9660 [ad-namecache]: cd9660_lookup.c cd9660_vfsops.c src/sys/fs/msdosfs [ad-namecache]: msdosfs_lookup.c msdosfs_vfsops.c src/sys/fs/tmpfs [ad-namecache]: tmpfs_

CVS commit: [ad-namecache] src/sys

2020-01-19 Thread Andrew Doran
Module Name:src Committed By: ad Date: Sun Jan 19 21:19:25 UTC 2020 Modified Files: src/sys/kern [ad-namecache]: vfs_cache.c vfs_getcwd.c vfs_lookup.c src/sys/sys [ad-namecache]: fstypes.h namei.src Log Message: - Add a LOCKSHARED flag to namei (matching FreeBSD) i

CVS commit: [ad-namecache] src/sys/arch

2020-01-19 Thread Andrew Doran
Module Name:src Committed By: ad Date: Sun Jan 19 21:11:00 UTC 2020 Modified Files: src/sys/arch/amd64/include [ad-namecache]: rwlock.h src/sys/arch/i386/include [ad-namecache]: rwlock.h src/sys/arch/x86/include [ad-namecache]: rwlock.h Log Message: empty t

CVS commit: [ad-namecache] src/sys

2020-01-19 Thread Andrew Doran
Module Name:src Committed By: ad Date: Sun Jan 19 21:08:30 UTC 2020 Modified Files: src/sys/arch/amd64/amd64 [ad-namecache]: genassym.cf lock_stubs.S src/sys/arch/i386/i386 [ad-namecache]: genassym.cf lock_stubs.S src/sys/kern [ad-namecache]: kern_rwlock.c k

CVS commit: [ad-namecache] src/sys

2020-01-19 Thread Andrew Doran
Module Name:src Committed By: ad Date: Sun Jan 19 19:44:34 UTC 2020 Modified Files: src/sys/kern [ad-namecache]: kern_rwlock.c src/sys/sys [ad-namecache]: rwlock.h Log Message: Sync with head. To generate a diff of this commit: cvs rdiff -u -r1.59.2.1 -r1.59.2.2

CVS commit: [ad-namecache] src/sys/kern

2020-01-18 Thread Andrew Doran
Module Name:src Committed By: ad Date: Sat Jan 18 17:16:20 UTC 2020 Modified Files: src/sys/kern [ad-namecache]: vfs_cache.c Log Message: Fix namecache_print(). To generate a diff of this commit: cvs rdiff -u -r1.126.2.7 -r1.126.2.8 src/sys/kern/vfs_cache.c Please note

CVS commit: [ad-namecache] src/sys/sys

2020-01-18 Thread Andrew Doran
Module Name:src Committed By: ad Date: Sat Jan 18 17:14:35 UTC 2020 Modified Files: src/sys/sys [ad-namecache]: vnode_if.h Log Message: Regen. To generate a diff of this commit: cvs rdiff -u -r1.103 -r1.103.2.1 src/sys/sys/vnode_if.h Please note that diffs are not publi

CVS commit: [ad-namecache] src/sys/kern

2020-01-18 Thread Andrew Doran
Module Name:src Committed By: ad Date: Sat Jan 18 17:14:13 UTC 2020 Modified Files: src/sys/kern [ad-namecache]: vnode_if.c Log Message: Regen. To generate a diff of this commit: cvs rdiff -u -r1.109 -r1.109.2.1 src/sys/kern/vnode_if.c Please note that diffs are not pub

CVS commit: [ad-namecache] src/sys

2020-01-18 Thread Andrew Doran
Module Name:src Committed By: ad Date: Sat Jan 18 17:12:59 UTC 2020 Modified Files: src/sys/kern [ad-namecache]: vnode_if.sh src/sys/miscfs/genfs [ad-namecache]: genfs_vnops.c Log Message: Allow VOP_LOCK(LK_NONE). To generate a diff of this commit: cvs rdiff -u -

CVS commit: [ad-namecache] src/sys/kern

2020-01-18 Thread Andrew Doran
Module Name:src Committed By: ad Date: Sat Jan 18 15:42:02 UTC 2020 Modified Files: src/sys/kern [ad-namecache]: vfs_cache.c Log Message: - Adjust comments & assertions. - Ditch memcmp(). To generate a diff of this commit: cvs rdiff -u -r1.126.2.6 -r1.126.2.7 src/sys/ker

CVS commit: [ad-namecache] src/sys

2020-01-17 Thread Andrew Doran
Module Name:src Committed By: ad Date: Fri Jan 17 22:26:26 UTC 2020 Modified Files: src/sys/fs/tmpfs [ad-namecache]: tmpfs_subr.c src/sys/kern [ad-namecache]: vfs_cache.c vfs_lookup.c src/sys/sys [ad-namecache]: namei.src vnode_impl.h src/sys/ufs/ffs

CVS commit: [ad-namecache] src/sys/kern

2020-01-17 Thread Andrew Doran
Module Name:src Committed By: ad Date: Fri Jan 17 21:54:27 UTC 2020 Modified Files: src/sys/kern [ad-namecache]: vfs_getcwd.c Log Message: - Get shared locks on the directories, except for VOP_GETATTR() which unfortunately still needs LK_EXCLUSIVE due to itimes handling

CVS commit: [ad-namecache] src/sys/kern

2020-01-17 Thread Andrew Doran
Module Name:src Committed By: ad Date: Fri Jan 17 21:55:13 UTC 2020 Modified Files: src/sys/kern [ad-namecache]: vfs_vnode.c Log Message: vrelel: don't change the vnode state to VS_BLOCKED for VOP_INACTIVE(), it's not needed (at least not for the usual case). Will revist

CVS commit: [ad-namecache] src/sys/kern

2020-01-17 Thread Andrew Doran
Module Name:src Committed By: ad Date: Fri Jan 17 21:53:01 UTC 2020 Modified Files: src/sys/kern [ad-namecache]: exec_script.c Log Message: LK_SHARED for VOP_ACCESS(). To generate a diff of this commit: cvs rdiff -u -r1.80 -r1.80.2.1 src/sys/kern/exec_script.c Please no

CVS commit: [ad-namecache] src/sys/kern

2020-01-16 Thread Andrew Doran
Module Name:src Committed By: ad Date: Thu Jan 16 16:45:31 UTC 2020 Modified Files: src/sys/kern [ad-namecache]: vfs_lookup.c Log Message: Push the vnode locking in namei() about as far back as it will go. To generate a diff of this commit: cvs rdiff -u -r1.212 -r1.212.4

CVS commit: [ad-namecache] src/sys

2020-01-14 Thread Andrew Doran
Module Name:src Committed By: ad Date: Tue Jan 14 11:07:40 UTC 2020 Modified Files: src/sys/kern [ad-namecache]: vfs_cache.c src/sys/sys [ad-namecache]: namei.src vnode_impl.h Log Message: namecache: This is working better than expected. It seems to cut system ti

CVS commit: [ad-namecache] src/sys

2020-01-14 Thread Andrew Doran
Module Name:src Committed By: ad Date: Tue Jan 14 11:08:01 UTC 2020 Modified Files: src/sys/rump/include/rump [ad-namecache]: rump_namei.h src/sys/sys [ad-namecache]: namei.h Log Message: Regen. To generate a diff of this commit: cvs rdiff -u -r1.37.2.1 -r1.37.2.

CVS commit: [ad-namecache] src/sys

2020-01-13 Thread Andrew Doran
Module Name:src Committed By: ad Date: Mon Jan 13 08:51:07 UTC 2020 Modified Files: src/sys/kern [ad-namecache]: vfs_cache.c src/sys/sys [ad-namecache]: namei.src vnode_impl.h Log Message: Make the per-directory lock a rwlock. To generate a diff of this commit: c

CVS commit: [ad-namecache] src/sys/kern

2020-01-08 Thread Andrew Doran
Module Name:src Committed By: ad Date: Wed Jan 8 21:55:10 UTC 2020 Modified Files: src/sys/kern [ad-namecache]: vfs_cache.c Log Message: Fix a comment. To generate a diff of this commit: cvs rdiff -u -r1.126.2.2 -r1.126.2.3 src/sys/kern/vfs_cache.c Please note that dif

CVS commit: [ad-namecache] src/sys/kern

2020-01-08 Thread Andrew Doran
Module Name:src Committed By: ad Date: Wed Jan 8 11:44:30 UTC 2020 Modified Files: src/sys/kern [ad-namecache]: vfs_cache.c Log Message: cache_enter(): check namelen before touching name. To generate a diff of this commit: cvs rdiff -u -r1.126.2.1 -r1.126.2.2 src/sys/ke

CVS commit: [ad-namecache] src/sys

2020-01-08 Thread Andrew Doran
Module Name:src Committed By: ad Date: Wed Jan 8 11:02:16 UTC 2020 Modified Files: src/sys/kern [ad-namecache]: init_sysctl.c vfs_cache.c vfs_vnode.c src/sys/sys [ad-namecache]: namei.src vnode_impl.h Log Message: Redo the namecache to focus on per-directory data

CVS commit: [ad-namecache] src/sys

2020-01-08 Thread Andrew Doran
Module Name:src Committed By: ad Date: Wed Jan 8 11:02:35 UTC 2020 Modified Files: src/sys/rump/include/rump [ad-namecache]: rump_namei.h src/sys/sys [ad-namecache]: namei.h Log Message: Regen. To generate a diff of this commit: cvs rdiff -u -r1.37 -r1.37.2.1 sr