CVS log for src/sys/kern/vfs_cache.c
Up to [cvs.NetBSD.org] / src / sys / kern
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revision 1.156.6.1: download - view: text, markup, annotated - select for diffs
Sat Aug 2 05:57:43 2025 UTC (15 months, 2 weeks ago) by perseant
Branches: perseant-exfatfs
Diff to: previous 1.156: preferred, colored; next MAIN 1.157: preferred, colored
Changes since revision 1.156: +24 -19
lines
Sync with HEAD
Revision 1.159: download - view: text, markup, annotated - select for diffs
Sat Dec 7 02:27:38 2024 UTC (23 months, 1 week ago) by riastradh
Branches: MAIN
CVS tags: perseant-exfatfs-base-20261102,
perseant-exfatfs-base-20250801,
netbsd-11-base,
netbsd-11-1-RELEASE,
netbsd-11-0-RELEASE,
netbsd-11-0-RC7,
netbsd-11-0-RC6,
netbsd-11-0-RC5,
netbsd-11-0-RC4,
netbsd-11-0-RC3,
netbsd-11-0-RC2,
netbsd-11-0-RC1,
netbsd-11,
HEAD
Diff to: previous 1.158: preferred, colored
Changes since revision 1.158: +6 -6
lines
vfs(9): Sprinkle SET_ERROR dtrace probes.
PR kern/58378: Kernel error code origination lacks dtrace probes
Revision 1.158: download - view: text, markup, annotated - select for diffs
Sat Dec 7 02:23:09 2024 UTC (23 months, 1 week ago) by riastradh
Branches: MAIN
Diff to: previous 1.157: preferred, colored
Changes since revision 1.157: +15 -12
lines
vfs(9): Fix some more whitespace issues.
No functional change intended.
Revision 1.157: download - view: text, markup, annotated - select for diffs
Sat Dec 7 02:11:42 2024 UTC (23 months, 1 week ago) by riastradh
Branches: MAIN
Diff to: previous 1.156: preferred, colored
Changes since revision 1.156: +7 -5
lines
vfs(9): Sprinkle KNF.
No functional change intended.
Revision 1.156: download - view: text, markup, annotated - select for diffs
Mon Oct 2 21:50:18 2023 UTC (3 years, 1 month ago) by ad
Branches: MAIN
CVS tags: thorpej-ifq-base,
thorpej-ifq,
thorpej-altq-separation-base,
thorpej-altq-separation,
perseant-exfatfs-base-20240630,
perseant-exfatfs-base
Branch point for: perseant-exfatfs
Diff to: previous 1.155: preferred, colored
Changes since revision 1.155: +9 -9
lines
Tweak a couple of comments.
Revision 1.155: download - view: text, markup, annotated - select for diffs
Sat Sep 9 18:27:59 2023 UTC (3 years, 2 months ago) by ad
Branches: MAIN
Diff to: previous 1.154: preferred, colored
Changes since revision 1.154: +63 -42
lines
- Shrink namecache entries to 64 bytes on 32-bit platforms and use 32-bit
key values there for speed (remains 128 bytes & 64-bits on _LP64).
- Comments.
Revision 1.154: download - view: text, markup, annotated - select for diffs
Sat Apr 29 10:07:22 2023 UTC (3 years, 6 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.153: preferred, colored
Changes since revision 1.153: +2 -4
lines
vfs(9): Move SDT_PROVIDER_DEFINE(vfs) from vfs_cache.c to vfs_init.c.
Not a namecache-specific thing.
Revision 1.153: download - view: text, markup, annotated - select for diffs
Sun Apr 9 09:18:09 2023 UTC (3 years, 7 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.152: preferred, colored
Changes since revision 1.152: +8 -5
lines
kern: KASSERT(A && B) -> KASSERT(A); KASSERT(B)
Revision 1.152: download - view: text, markup, annotated - select for diffs
Mon Nov 1 21:28:03 2021 UTC (5 years ago) by andvar
Branches: MAIN
CVS tags: netbsd-10-base,
netbsd-10-2-RELEASE,
netbsd-10-1-RELEASE,
netbsd-10-0-RELEASE,
netbsd-10-0-RC6,
netbsd-10-0-RC5,
netbsd-10-0-RC4,
netbsd-10-0-RC3,
netbsd-10-0-RC2,
netbsd-10-0-RC1,
netbsd-10,
bouyer-sunxi-drm-base,
bouyer-sunxi-drm
Diff to: previous 1.151: preferred, colored
Changes since revision 1.151: +3 -3
lines
fix typos, mainly in words minimum and maximum, but also few others.
Revision 1.151: download - view: text, markup, annotated - select for diffs
Tue Sep 21 14:56:08 2021 UTC (5 years, 1 month ago) by christos
Branches: MAIN
Diff to: previous 1.150: preferred, colored
Changes since revision 1.150: +5 -4
lines
don't opencode kauth_cred_get()
Revision 1.149.4.1: download - view: text, markup, annotated - select for diffs
Sun Aug 1 22:42:39 2021 UTC (5 years, 3 months ago) by thorpej
Branches: thorpej-i2c-spi-conf
Diff to: previous 1.149: preferred, colored; next MAIN 1.150: preferred, colored
Changes since revision 1.149: +3 -2
lines
Sync with HEAD.
Revision 1.150: download - view: text, markup, annotated - select for diffs
Wed Jul 21 06:35:45 2021 UTC (5 years, 3 months ago) by skrll
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf2-base,
thorpej-i2c-spi-conf2,
thorpej-i2c-spi-conf-base,
thorpej-futex2-base,
thorpej-futex2,
thorpej-cfargs2-base,
thorpej-cfargs2
Diff to: previous 1.149: preferred, colored
Changes since revision 1.149: +3 -2
lines
need <sys/param.h> for COHERENCY_UNIT
Minor KNF along the way.
Revision 1.147.2.1: download - view: text, markup, annotated - select for diffs
Mon Dec 14 14:38:14 2020 UTC (5 years, 11 months ago) by thorpej
Branches: thorpej-futex
Diff to: previous 1.147: preferred, colored; next MAIN 1.148: preferred, colored
Changes since revision 1.147: +5 -5
lines
Sync w/ HEAD.
Revision 1.149: download - view: text, markup, annotated - select for diffs
Sat Dec 12 18:41:13 2020 UTC (5 years, 11 months ago) by christos
Branches: MAIN
CVS tags: thorpej-futex-base,
thorpej-cfargs-base,
thorpej-cfargs,
cjep_sun2x-base1,
cjep_sun2x-base,
cjep_sun2x,
cjep_staticlib_x-base1,
cjep_staticlib_x-base,
cjep_staticlib_x
Branch point for: thorpej-i2c-spi-conf
Diff to: previous 1.148: preferred, colored
Changes since revision 1.148: +4 -3
lines
Be more clear and don't rely on cur being the first member.
Revision 1.148: download - view: text, markup, annotated - select for diffs
Sat Dec 12 18:35:59 2020 UTC (5 years, 11 months ago) by uwe
Branches: MAIN
Diff to: previous 1.147: preferred, colored
Changes since revision 1.147: +3 -4
lines
vfs_cache - do not write outside allocated memory.
In cache_cpu_init allocate struct nchcpu, not struct nchstats_percpu.
cache_update_stats expects the former (that contains two percpu
structs). Stat updates where smashing whatever was in the next pool
allocation.
Reported by martin@ as crashes in ptyfs on Krups.
Revision 1.147: download - view: text, markup, annotated - select for diffs
Thu Jun 4 03:08:33 2020 UTC (6 years, 5 months ago) by riastradh
Branches: MAIN
Branch point for: thorpej-futex
Diff to: previous 1.146: preferred, colored
Changes since revision 1.146: +7 -7
lines
Nix trailing whitespace. NFCI.
Revision 1.146: download - view: text, markup, annotated - select for diffs
Sat May 30 20:16:14 2020 UTC (6 years, 5 months ago) by ad
Branches: MAIN
Diff to: previous 1.145: preferred, colored
Changes since revision 1.145: +66 -0
lines
A couple of small changes to lookup that cut 5-10% system time from
"build.sh release" on my test system:
- Crossing mount points during lookup is slow because the set up for, and
act of doing VFS_ROOT() is quite involved. Use the name cache to help
with this. Cache an "impossible" zero-length name with covered vnodes,
that points to the root of the file system mounted there. Use it to cross
mounts. When cache_purge() is called on either of the vnodes involved the
cache entry will disappear. All of the needed calls for that are already
in place (vnode reclaim, unmount, etc).
- In lookup_fastforward(), if the the last component has been found and the
parent directory (searchdir) is not going to be returned, then don't get a
reference to it.
Revision 1.145: download - view: text, markup, annotated - select for diffs
Sat May 30 18:06:17 2020 UTC (6 years, 5 months ago) by ad
Branches: MAIN
Diff to: previous 1.144: preferred, colored
Changes since revision 1.144: +40 -25
lines
cache_lookup_linked():
- If the lookup fails return with the same lock held. There's no bug here
because either parent or child's lock is sufficient to prevent both from
disappearing into thin air, but may as well be correct.
- if FSCRED is passed in then skip the auth check.
Revision 1.144: download - view: text, markup, annotated - select for diffs
Tue May 26 18:38:37 2020 UTC (6 years, 5 months ago) by ad
Branches: MAIN
Diff to: previous 1.143: preferred, colored
Changes since revision 1.143: +4 -10
lines
Make vcache_tryvget() lockless. Reviewed by hannken@.
Revision 1.143: download - view: text, markup, annotated - select for diffs
Sat May 16 18:31:50 2020 UTC (6 years, 6 months ago) by christos
Branches: MAIN
Diff to: previous 1.142: preferred, colored
Changes since revision 1.142: +8 -8
lines
Add ACL support for FFS. From FreeBSD.
Revision 1.142: download - view: text, markup, annotated - select for diffs
Tue May 12 23:17:41 2020 UTC (6 years, 6 months ago) by ad
Branches: MAIN
Diff to: previous 1.141: preferred, colored
Changes since revision 1.141: +26 -17
lines
cache_enter_id(): give it a boolean parameter to indicate whether the cached
identity is valid.
Revision 1.137.2.2: download - view: text, markup, annotated - select for diffs
Sat Apr 25 11:24:06 2020 UTC (6 years, 6 months ago) by bouyer
Branches: bouyer-xenpvh
Diff to: previous 1.137.2.1: preferred, colored; branchpoint 1.137: preferred, colored; next MAIN 1.138: preferred, colored
Changes since revision 1.137.2.1: +7 -4
lines
Sync with bouyer-xenpvh-base2 (HEAD)
Revision 1.141: download - view: text, markup, annotated - select for diffs
Thu Apr 23 22:58:36 2020 UTC (6 years, 6 months ago) by ad
Branches: MAIN
CVS tags: bouyer-xenpvh-base2
Diff to: previous 1.140: preferred, colored
Changes since revision 1.140: +4 -8
lines
cache_lookup_linked(): We can't use the name to decide how to lock the dir,
since the name refers to the child (found object) not the parent (the thing
that's being locked).
Fix it by always doing rw_tryenter(). There's not much to be won by
optimising for the contended case, and were this routine doing lockless
lookups (the eventual goal) it wouldn't be hanging around waiting for
changes either.
Revision 1.140: download - view: text, markup, annotated - select for diffs
Wed Apr 22 21:35:52 2020 UTC (6 years, 6 months ago) by ad
Branches: MAIN
Diff to: previous 1.139: preferred, colored
Changes since revision 1.139: +11 -4
lines
lookup_fastforward(): handle dotdot lookups and give up less often in
the union mount case.
Revision 1.120.14.2: download - view: text, markup, annotated - select for diffs
Tue Apr 21 18:42:42 2020 UTC (6 years, 6 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.120.14.1: preferred, colored; branchpoint 1.120: preferred, colored; next MAIN 1.121: preferred, colored
Changes since revision 1.120.14.1: +1 -1
lines
Sync with HEAD
Revision 1.137.2.1: download - view: text, markup, annotated - select for diffs
Mon Apr 20 11:29:10 2020 UTC (6 years, 6 months ago) by bouyer
Branches: bouyer-xenpvh
Diff to: previous 1.137: preferred, colored
Changes since revision 1.137: +6 -6
lines
Sync with HEAD
Revision 1.139: download - view: text, markup, annotated - select for diffs
Mon Apr 13 19:23:18 2020 UTC (6 years, 7 months ago) by ad
Branches: MAIN
CVS tags: phil-wifi-20200421,
bouyer-xenpvh-base1
Diff to: previous 1.138: preferred, colored
Changes since revision 1.138: +3 -3
lines
Replace most uses of vp->v_usecount with a call to vrefcnt(vp), a function
that hides the details and does atomic_load_relaxed(). Signature matches
FreeBSD.
Revision 1.120.14.1: download - view: text, markup, annotated - select for diffs
Mon Apr 13 08:05:04 2020 UTC (6 years, 7 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.120: preferred, colored
Changes since revision 1.120: +950 -881
lines
Mostly merge changes from HEAD upto 20200411
Revision 1.138: download - view: text, markup, annotated - select for diffs
Fri Apr 10 16:55:40 2020 UTC (6 years, 7 months ago) by ad
Branches: MAIN
CVS tags: phil-wifi-20200411
Diff to: previous 1.137: preferred, colored
Changes since revision 1.137: +5 -5
lines
Cosmetic changes
Revision 1.137: download - view: text, markup, annotated - select for diffs
Sat Apr 4 20:49:30 2020 UTC (6 years, 7 months ago) by ad
Branches: MAIN
CVS tags: phil-wifi-20200406,
bouyer-xenpvh-base
Branch point for: bouyer-xenpvh
Diff to: previous 1.136: preferred, colored
Changes since revision 1.136: +2 -6
lines
Merge the remaining changes from the ad-namecache branch, affecting namei()
and getcwd():
- push vnode locking back as far as possible.
- do most lookups directly in the namecache, avoiding vnode locks & refs.
- don't block new refs to vnodes across VOP_INACTIVE().
- get shared locks for VOP_LOOKUP() if the file system supports it.
- correct lock types for VOP_ACCESS() / VOP_GETATTR() in a few places.
Possible future enhancements:
- make the lookups lockless.
- support dotdot lookups by being lockless and inferring absence of chroot.
- maybe make it work for layered file systems.
- avoid vnode references at the root & cwd.
Revision 1.136: download - view: text, markup, annotated - select for diffs
Mon Mar 30 19:15:28 2020 UTC (6 years, 7 months ago) by ad
Branches: MAIN
Diff to: previous 1.135: preferred, colored
Changes since revision 1.135: +10 -10
lines
cache_lookup(): fix a use-after-free.
Revision 1.135: download - view: text, markup, annotated - select for diffs
Fri Mar 27 00:14:25 2020 UTC (6 years, 7 months ago) by ad
Branches: MAIN
Diff to: previous 1.134: preferred, colored
Changes since revision 1.134: +20 -19
lines
- Stats: add a cast to make sure 32-bit wraparound works properly.
- cache_purge_children(): just use RB_TREE_MIN().
- Change the name of the pool to "namecache".
- Update comments.
Revision 1.134: download - view: text, markup, annotated - select for diffs
Mon Mar 23 20:02:13 2020 UTC (6 years, 7 months ago) by ad
Branches: MAIN
Diff to: previous 1.133: preferred, colored
Changes since revision 1.133: +15 -12
lines
cache_remove(): remove from the vnode list first, so cache_revlookup()
doesn't try to re-activate an entry no longer on the LRU list.
Revision 1.133: download - view: text, markup, annotated - select for diffs
Mon Mar 23 19:45:11 2020 UTC (6 years, 7 months ago) by ad
Branches: MAIN
Diff to: previous 1.132: preferred, colored
Changes since revision 1.132: +6 -2
lines
Oops. Fix merge error.
Revision 1.132: download - view: text, markup, annotated - select for diffs
Mon Mar 23 18:56:14 2020 UTC (6 years, 7 months ago) by ad
Branches: MAIN
Diff to: previous 1.131: preferred, colored
Changes since revision 1.131: +3 -7
lines
Correct an assertion.
Revision 1.131: download - view: text, markup, annotated - select for diffs
Mon Mar 23 18:41:40 2020 UTC (6 years, 7 months ago) by ad
Branches: MAIN
Diff to: previous 1.130: preferred, colored
Changes since revision 1.130: +41 -68
lines
- Deal with (rare) hash collisions by using memcmp() to partition further.
- Adjust some comments.
Revision 1.130: download - view: text, markup, annotated - select for diffs
Mon Mar 23 18:37:30 2020 UTC (6 years, 7 months ago) by ad
Branches: MAIN
Diff to: previous 1.129: preferred, colored
Changes since revision 1.129: +27 -30
lines
Fix a race between cache_enter() and cache_revlookup().
Revision 1.129: download - view: text, markup, annotated - select for diffs
Mon Mar 23 18:33:43 2020 UTC (6 years, 7 months ago) by ad
Branches: MAIN
Diff to: previous 1.128: preferred, colored
Changes since revision 1.128: +9 -9
lines
Pacify a syzbot complaint about bit shifting.
Reported-by: syzbot+dd5df915b2cd2f3f3da5@syzkaller.appspotmail.com
Revision 1.128: download - view: text, markup, annotated - select for diffs
Sun Mar 22 14:38:37 2020 UTC (6 years, 7 months ago) by ad
Branches: MAIN
Diff to: previous 1.127: preferred, colored
Changes since revision 1.127: +953 -813
lines
Merge vfs_cache.c from the ad-namecache branch. With this the namecache
index becomes per-directory (initially, a red-black tree). The remaining
changes on the branch to namei()/getcwd() will be merged in the future.
Revision 1.126.2.17: download - view: text, markup, annotated - select for diffs
Sun Mar 22 14:16:50 2020 UTC (6 years, 7 months ago) by ad
Branches: ad-namecache
Diff to: previous 1.126.2.16: preferred, colored; branchpoint 1.126: preferred, colored; next MAIN 1.127: preferred, colored
Changes since revision 1.126.2.16: +67 -32
lines
Resurrect the counter stuff from HEAD, which tries to deal with 32-bit
counter rollover. Drive it by sysctl and/or callout every 5 minutes,
since there's no garbage collection kthread any more.
Revision 1.126.2.16: download - view: text, markup, annotated - select for diffs
Sun Mar 22 01:58:22 2020 UTC (6 years, 7 months ago) by ad
Branches: ad-namecache
Diff to: previous 1.126.2.15: preferred, colored; branchpoint 1.126: preferred, colored
Changes since revision 1.126.2.15: +11 -11
lines
- rb_tree_insert_node() refuses to insert duplicate nodes. It always
returns a pointer to the current node in the tree for the given key.
Therefore the call to rb_tree_lookup_node() in cache_enter() is not
needed.
- Adjust a comment and move some code for clarity.
Revision 1.126.2.15: download - view: text, markup, annotated - select for diffs
Sun Mar 22 00:34:31 2020 UTC (6 years, 7 months ago) by ad
Branches: ad-namecache
Diff to: previous 1.126.2.14: preferred, colored; branchpoint 1.126: preferred, colored
Changes since revision 1.126.2.14: +11 -12
lines
- Fold the "doingcache" conditional into the max length conditional.
- Mark the tunables __read_mostly.
Revision 1.126.2.14: download - view: text, markup, annotated - select for diffs
Sat Mar 21 22:00:55 2020 UTC (6 years, 7 months ago) by ad
Branches: ad-namecache
Diff to: previous 1.126.2.13: preferred, colored; branchpoint 1.126: preferred, colored
Changes since revision 1.126.2.13: +15 -9
lines
- Include sys/types.h for vax.
- Use macro versions of kpreempt_disable()/enable().
- Use atomic_load_relaxed().
- Make cache_key() inline.
Revision 1.126.2.13: download - view: text, markup, annotated - select for diffs
Tue Mar 10 21:53:45 2020 UTC (6 years, 8 months ago) by ad
Branches: ad-namecache
Diff to: previous 1.126.2.12: preferred, colored; branchpoint 1.126: preferred, colored
Changes since revision 1.126.2.12: +3 -3
lines
__read_mostly -> const in one place
Revision 1.126.2.12: download - view: text, markup, annotated - select for diffs
Sun Feb 16 22:00:53 2020 UTC (6 years, 9 months ago) by ad
Branches: ad-namecache
Diff to: previous 1.126.2.11: preferred, colored; branchpoint 1.126: preferred, colored
Changes since revision 1.126.2.11: +11 -11
lines
Comments.
Revision 1.126.2.11: download - view: text, markup, annotated - select for diffs
Fri Jan 24 16:48:59 2020 UTC (6 years, 9 months ago) by ad
Branches: ad-namecache
Diff to: previous 1.126.2.10: preferred, colored; branchpoint 1.126: preferred, colored
Changes since revision 1.126.2.10: +382 -411
lines
- Put all the namecache stuff back into vnode_impl_t.
- Tidy vfs_cache.c up, finish the comments.
- Finalise how ID information is entered to the cache.
- Handle very small/old systems.
Revision 1.126.2.10: download - view: text, markup, annotated - select for diffs
Thu Jan 23 12:33:18 2020 UTC (6 years, 9 months ago) by ad
Branches: ad-namecache
Diff to: previous 1.126.2.9: preferred, colored; branchpoint 1.126: preferred, colored
Changes since revision 1.126.2.9: +73 -61
lines
Update comments.
Revision 1.126.2.9: download - view: text, markup, annotated - select for diffs
Sun Jan 19 21:19:25 2020 UTC (6 years, 9 months ago) by ad
Branches: ad-namecache
Diff to: previous 1.126.2.8: preferred, colored; branchpoint 1.126: preferred, colored
Changes since revision 1.126.2.8: +53 -11
lines
- Add a LOCKSHARED flag to namei (matching FreeBSD) indicating that we want
the leaf locked with LK_SHARED.
- Add an IMNT_SHRLOOKUP flag to struct mount indicating that the file
system can do VOP_LOOKUP() with an shared lock. If it encounters
something tricky, VOP_LOOKUP() is free to return ENOLCK and namei() will
retry the lookup with an exclusive lock. If the file system has this flag
set, namei() will try with shared locks for all of the "read only"
lookups, i.e. nameiop=LOOKUP or !ISLASTCN.
- vfs_getcwd: only take vnode locks when really needed, take shared locks if
possible, and where the namecache has identify info for the directories,
do it all in the namecache.
- vfs_lookup: when crossing mountpoints take only a shared lock on the
covered vnode; don't need anything else.
Revision 1.126.2.8: download - view: text, markup, annotated - select for diffs
Sat Jan 18 17:16:20 2020 UTC (6 years, 9 months ago) by ad
Branches: ad-namecache
Diff to: previous 1.126.2.7: preferred, colored; branchpoint 1.126: preferred, colored
Changes since revision 1.126.2.7: +3 -4
lines
Fix namecache_print().
Revision 1.126.2.7: download - view: text, markup, annotated - select for diffs
Sat Jan 18 15:42:02 2020 UTC (6 years, 9 months ago) by ad
Branches: ad-namecache
Diff to: previous 1.126.2.6: preferred, colored; branchpoint 1.126: preferred, colored
Changes since revision 1.126.2.6: +31 -15
lines
- Adjust comments & assertions.
- Ditch memcmp().
Revision 1.126.2.6: download - view: text, markup, annotated - select for diffs
Fri Jan 17 22:26:25 2020 UTC (6 years, 10 months ago) by ad
Branches: ad-namecache
Diff to: previous 1.126.2.5: preferred, colored; branchpoint 1.126: preferred, colored
Changes since revision 1.126.2.5: +676 -508
lines
vfs_lookup:
- Do the easy component name lookups directly in the namecache without
taking vnode locks nor vnode references (between the start and the leaf /
parent), which seems to largely solve the lock contention problem with
namei(). It needs support from the file system, which has to tell the
name cache about directory permissions (only ffs and tmpfs tried so far),
and I'm not sure how or if it can work with layered file systems yet.
Work in progress.
vfs_cache:
- Make the rbtree operations more efficient: inline the lookup, and key on a
64-bit hash value (32 bits plus 16 bits length) rather than names.
- Take namecache stuff out of vnode_impl, and take the rwlocks, and put them
all together an an nchnode struct which is mapped 1:1: with vnodes. Saves
memory and nicer cache profile.
- Add a routine to help vfs_lookup do its easy component name lookups.
- Report some more stats.
- Tidy up the file a bit.
Revision 1.126.2.5: download - view: text, markup, annotated - select for diffs
Tue Jan 14 11:07:40 2020 UTC (6 years, 10 months ago) by ad
Branches: ad-namecache
Diff to: previous 1.126.2.4: preferred, colored; branchpoint 1.126: preferred, colored
Changes since revision 1.126.2.4: +329 -199
lines
namecache:
This is working better than expected. It seems to cut system time for
build.sh by ~10% on my test machine and joerg@ is seeing better results with
pbulk. Improve it a bit more without changing the basic idea:
- Split cache_list_lock into a per-vnode rwlock for reverse lookup, and a
lightly contended global lock on LRU state (cache_lru_lock),
- For LRU replacement, imitate the VM system's page replacement algorithm.
This eliminates the writebacks to struct namecache (to track time of last
hit).
- Dynamically allocate the per-directory lock, preparing the way for having
a "struct nchdir" or similar which could contain stuff like different
structures for lookup, cached info to do the equivalent of VOP_ACCESS() in
cache, and so on.
Revision 1.126.2.4: download - view: text, markup, annotated - select for diffs
Mon Jan 13 08:51:07 2020 UTC (6 years, 10 months ago) by ad
Branches: ad-namecache
Diff to: previous 1.126.2.3: preferred, colored; branchpoint 1.126: preferred, colored
Changes since revision 1.126.2.3: +56 -42
lines
Make the per-directory lock a rwlock.
Revision 1.126.2.3: download - view: text, markup, annotated - select for diffs
Wed Jan 8 21:55:10 2020 UTC (6 years, 10 months ago) by ad
Branches: ad-namecache
Diff to: previous 1.126.2.2: preferred, colored; branchpoint 1.126: preferred, colored
Changes since revision 1.126.2.2: +3 -3
lines
Fix a comment.
Revision 1.127: download - view: text, markup, annotated - select for diffs
Wed Jan 8 12:04:56 2020 UTC (6 years, 10 months ago) by ad
Branches: MAIN
CVS tags: is-mlppp-base,
is-mlppp,
ad-namecache-base3,
ad-namecache-base2,
ad-namecache-base1
Diff to: previous 1.126: preferred, colored
Changes since revision 1.126: +72 -62
lines
- options NAMECACHE_ENTER_REVERSE is no more.
- Partially sort the list of per-vnode namecache entries by using a TAILQ.
Put the real name to the head, and put dot and dotdot to the tail so that
cache_lookup_reverse() doesn't have to consider them.
Revision 1.126.2.2: download - view: text, markup, annotated - select for diffs
Wed Jan 8 11:44:30 2020 UTC (6 years, 10 months ago) by ad
Branches: ad-namecache
Diff to: previous 1.126.2.1: preferred, colored; branchpoint 1.126: preferred, colored
Changes since revision 1.126.2.1: +4 -4
lines
cache_enter(): check namelen before touching name.
Revision 1.126.2.1: download - view: text, markup, annotated - select for diffs
Wed Jan 8 11:02:16 2020 UTC (6 years, 10 months ago) by ad
Branches: ad-namecache
Diff to: previous 1.126: preferred, colored
Changes since revision 1.126: +487 -733
lines
Redo the namecache to focus on per-directory data structures, removing the
huge hashtable and nasty locking scheme.
Initially this uses rbtrees (because that's what's there). The intent is
experiment with other data structures.
Revision 1.126: download - view: text, markup, annotated - select for diffs
Mon Jan 6 11:22:33 2020 UTC (6 years, 10 months ago) by ad
Branches: MAIN
CVS tags: ad-namecache-base
Branch point for: ad-namecache
Diff to: previous 1.125: preferred, colored
Changes since revision 1.125: +24 -81
lines
Kill ncvhashtbl. It uses 64MB on my computer to map: vp -> vp (lol!).
Revision 1.125: download - view: text, markup, annotated - select for diffs
Sun Dec 1 18:31:19 2019 UTC (6 years, 11 months ago) by ad
Branches: MAIN
Diff to: previous 1.124: preferred, colored
Changes since revision 1.124: +135 -178
lines
Back out previous temporarily - seeing unusual lookup failures. Will
come back to it.
Revision 1.124: download - view: text, markup, annotated - select for diffs
Sun Dec 1 13:39:53 2019 UTC (6 years, 11 months ago) by ad
Branches: MAIN
Diff to: previous 1.123: preferred, colored
Changes since revision 1.123: +180 -137
lines
namecache changes:
- Delete the per-entry lock, and borrow the associated vnode's v_interlock
instead. We need to acquire it during lookup anyway. We can revisit this
in the future but for now it's a stepping stone, and works within the
quite limited context of what we have (BSD namecache/lookup design).
- Implement an idea that Mateusz Guzik (mjg@FreeBSD.org) gave me. In
cache_reclaim(), we don't need to lock out all of the CPUs to garbage
collect entries. All we need to do is observe their locks unheld at least
once: then we know they are not in the critical section, and no longer
have visibility of the entries about to be garbage collected.
- The above makes it safe for sysctl to take only namecache_lock to get stats,
and we can remove all the crap dealing with per-CPU locks.
- For lockstat, make namecache_lock a static now we have __cacheline_aligned.
- Avoid false sharing - don't write back to nc_hittime unless it has changed.
Put a a comment in place explaining this. Pretty sure this was there in
2008/2009 but someone removed it (understandably, the code looks weird).
- Use a mutex to protect the garbage collection queue instead of atomics, and
adjust the low water mark up so that cache_reclaim() isn't doing so much
work at once.
Revision 1.123: download - view: text, markup, annotated - select for diffs
Sun Sep 15 17:37:25 2019 UTC (7 years, 2 months ago) by maya
Branches: MAIN
CVS tags: phil-wifi-20191119
Diff to: previous 1.122: preferred, colored
Changes since revision 1.122: +3 -3
lines
More indentation
Revision 1.122: download - view: text, markup, annotated - select for diffs
Sun Sep 15 17:36:43 2019 UTC (7 years, 2 months ago) by maya
Branches: MAIN
Diff to: previous 1.121: preferred, colored
Changes since revision 1.121: +4 -3
lines
indentation and whitespace
Revision 1.121: download - view: text, markup, annotated - select for diffs
Fri Sep 13 14:01:33 2019 UTC (7 years, 2 months ago) by christos
Branches: MAIN
Diff to: previous 1.120: preferred, colored
Changes since revision 1.120: +16 -11
lines
- expose the now hidden namecache
- compare with USHRT_MAX since the max length grew (we could make it NAME_MAX)
- use kmem_alloc for entries > NCHNAMLEN so the namecache contains all
possible entries.
Revision 1.89.2.3: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:38:45 2017 UTC (8 years, 11 months ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.89.2.2: preferred, colored; branchpoint 1.89: preferred, colored; next MAIN 1.90: preferred, colored
Changes since revision 1.89.2.2: +375 -151
lines
update from HEAD
Revision 1.99.4.6: download - view: text, markup, annotated - select for diffs
Mon Aug 28 17:53:08 2017 UTC (9 years, 2 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.99.4.5: preferred, colored; branchpoint 1.99: preferred, colored; next MAIN 1.100: preferred, colored
Changes since revision 1.99.4.5: +160 -92
lines
Sync with HEAD
Revision 1.112.2.1: download - view: text, markup, annotated - select for diffs
Fri Apr 21 16:54:03 2017 UTC (9 years, 6 months ago) by bouyer
Branches: bouyer-socketcan
Diff to: previous 1.112: preferred, colored; next MAIN 1.113: preferred, colored
Changes since revision 1.112: +162 -94
lines
Sync with HEAD
Revision 1.110.2.2: download - view: text, markup, annotated - select for diffs
Mon Mar 20 06:57:48 2017 UTC (9 years, 7 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.110.2.1: preferred, colored; branchpoint 1.110: preferred, colored; next MAIN 1.111: preferred, colored
Changes since revision 1.110.2.1: +168 -100
lines
Sync with HEAD
Revision 1.120: download - view: text, markup, annotated - select for diffs
Sat Mar 18 22:36:56 2017 UTC (9 years, 8 months ago) by riastradh
Branches: MAIN
CVS tags: tls-maxphys-base-20171202,
prg-localcount2-base3,
prg-localcount2-base2,
prg-localcount2-base1,
prg-localcount2-base,
prg-localcount2,
phil-wifi-base,
phil-wifi-20190609,
pgoyette-localcount-20170426,
pgoyette-localcount-20170320,
pgoyette-compat-merge-20190127,
pgoyette-compat-base,
pgoyette-compat-20190127,
pgoyette-compat-20190118,
pgoyette-compat-1226,
pgoyette-compat-1126,
pgoyette-compat-1020,
pgoyette-compat-0930,
pgoyette-compat-0906,
pgoyette-compat-0728,
pgoyette-compat-0625,
pgoyette-compat-0521,
pgoyette-compat-0502,
pgoyette-compat-0422,
pgoyette-compat-0415,
pgoyette-compat-0407,
pgoyette-compat-0330,
pgoyette-compat-0322,
pgoyette-compat-0315,
pgoyette-compat,
perseant-stdc-iso10646-base,
perseant-stdc-iso10646,
nick-nhusb-base-20170825,
netbsd-9-base,
netbsd-9-5-RELEASE,
netbsd-9-4-RELEASE,
netbsd-9-3-RELEASE,
netbsd-9-2-RELEASE,
netbsd-9-1-RELEASE,
netbsd-9-0-RELEASE,
netbsd-9-0-RC2,
netbsd-9-0-RC1,
netbsd-9,
netbsd-8-base,
netbsd-8-3-RELEASE,
netbsd-8-2-RELEASE,
netbsd-8-1-RELEASE,
netbsd-8-1-RC1,
netbsd-8-0-RELEASE,
netbsd-8-0-RC2,
netbsd-8-0-RC1,
netbsd-8,
matt-nb8-mediatek-base,
matt-nb8-mediatek,
jdolecek-ncq-base,
jdolecek-ncq,
isaki-audio2-base,
isaki-audio2,
bouyer-socketcan-base1
Branch point for: phil-wifi
Diff to: previous 1.119: preferred, colored
Changes since revision 1.119: +44 -2
lines
Summarize lifetime of cache entries.
Revision 1.119: download - view: text, markup, annotated - select for diffs
Sat Mar 18 22:04:52 2017 UTC (9 years, 8 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.118: preferred, colored
Changes since revision 1.118: +2 -3
lines
Omit duplicate forward declaration of cache_invalidate.
Revision 1.118: download - view: text, markup, annotated - select for diffs
Sat Mar 18 22:02:11 2017 UTC (9 years, 8 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.117: preferred, colored
Changes since revision 1.117: +8 -3
lines
Fix lock order statement. Annotate with references to examples.
Revision 1.117: download - view: text, markup, annotated - select for diffs
Sat Mar 18 21:03:28 2017 UTC (9 years, 8 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.116: preferred, colored
Changes since revision 1.116: +81 -57
lines
Rework namecache locking commentary.
- Annotate struct namecache declaration in namei.src/namei.h.
- Bulleted lists, not walls of texts.
- Identify lock order too.
- Note subtle exceptions.
Revision 1.116: download - view: text, markup, annotated - select for diffs
Sat Mar 18 20:01:44 2017 UTC (9 years, 8 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.115: preferred, colored
Changes since revision 1.115: +4 -4
lines
Nix trailing whitespace.
Revision 1.115: download - view: text, markup, annotated - select for diffs
Sat Mar 18 20:00:10 2017 UTC (9 years, 8 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.114: preferred, colored
Changes since revision 1.114: +14 -14
lines
Sort #includes.
Revision 1.114: download - view: text, markup, annotated - select for diffs
Sat Mar 18 19:59:20 2017 UTC (9 years, 8 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.113: preferred, colored
Changes since revision 1.113: +2 -5
lines
Omit vestigial comment.
- We have not dropped the cache entry on vget failure since 2008.
- We have not had `generation numbers' since 2001.
Revision 1.113: download - view: text, markup, annotated - select for diffs
Sat Mar 18 19:43:31 2017 UTC (9 years, 8 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.112: preferred, colored
Changes since revision 1.112: +21 -20
lines
Make cache_lookup return bool for clarity.
Revision 1.99.4.5: download - view: text, markup, annotated - select for diffs
Sun Feb 5 13:40:56 2017 UTC (9 years, 9 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.99.4.4: preferred, colored; branchpoint 1.99: preferred, colored
Changes since revision 1.99.4.4: +16 -16
lines
Sync with HEAD
Revision 1.112: download - view: text, markup, annotated - select for diffs
Wed Jan 11 09:04:37 2017 UTC (9 years, 10 months ago) by hannken
Branches: MAIN
CVS tags: nick-nhusb-base-20170204,
bouyer-socketcan-base
Branch point for: bouyer-socketcan
Diff to: previous 1.111: preferred, colored
Changes since revision 1.111: +8 -8
lines
Move vnode members v_dnclist and v_nclist as vi_dnclist and
vi_nclist to vnode_impl.h.
Revision 1.110.2.1: download - view: text, markup, annotated - select for diffs
Sat Jan 7 08:56:49 2017 UTC (9 years, 10 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.110: preferred, colored
Changes since revision 1.110: +10 -10
lines
Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
Revision 1.111: download - view: text, markup, annotated - select for diffs
Mon Jan 2 10:33:28 2017 UTC (9 years, 10 months ago) by hannken
Branches: MAIN
CVS tags: pgoyette-localcount-20170107
Diff to: previous 1.110: preferred, colored
Changes since revision 1.110: +10 -10
lines
Rename vget() to vcache_vget() and vcache_tryvget() respectively and
move the definitions to sys/vnode_impl.h.
No functional change intended.
Welcome to 7.99.54
Revision 1.110: download - view: text, markup, annotated - select for diffs
Thu Jul 7 06:55:43 2016 UTC (10 years, 4 months ago) by msaitoh
Branches: MAIN
CVS tags: pgoyette-localcount-base,
pgoyette-localcount-20161104,
pgoyette-localcount-20160806,
pgoyette-localcount-20160726,
nick-nhusb-base-20161204,
nick-nhusb-base-20161004,
nick-nhusb-base-20160907,
localcount-20160914
Branch point for: pgoyette-localcount
Diff to: previous 1.109: preferred, colored
Changes since revision 1.109: +3 -3
lines
KNF. Remove extra spaces. No functional change.
Revision 1.99.4.4: download - view: text, markup, annotated - select for diffs
Sun Dec 27 12:10:05 2015 UTC (10 years, 10 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.99.4.3: preferred, colored; branchpoint 1.99: preferred, colored
Changes since revision 1.99.4.3: +54 -6
lines
Sync with HEAD (as of 26th Dec)
Revision 1.109: download - view: text, markup, annotated - select for diffs
Sat Dec 5 05:23:35 2015 UTC (10 years, 11 months ago) by dholland
Branches: MAIN
CVS tags: nick-nhusb-base-20160529,
nick-nhusb-base-20160422,
nick-nhusb-base-20160319,
nick-nhusb-base-20151226
Diff to: previous 1.108: preferred, colored
Changes since revision 1.108: +5 -6
lines
Fix lying comment.
Revision 1.108: download - view: text, markup, annotated - select for diffs
Fri Oct 2 16:54:15 2015 UTC (11 years, 1 month ago) by christos
Branches: MAIN
Diff to: previous 1.107: preferred, colored
Changes since revision 1.107: +51 -2
lines
Change SDT (Statically Defined Tracing) probes to use link sets so that it
is easier to add probes. (From FreeBSD)
Revision 1.99.4.3: download - view: text, markup, annotated - select for diffs
Tue Sep 22 12:06:07 2015 UTC (11 years, 1 month ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.99.4.2: preferred, colored; branchpoint 1.99: preferred, colored
Changes since revision 1.99.4.2: +4 -2
lines
Sync with HEAD
Revision 1.107: download - view: text, markup, annotated - select for diffs
Mon Aug 24 22:50:32 2015 UTC (11 years, 2 months ago) by pooka
Branches: MAIN
CVS tags: nick-nhusb-base-20150921
Diff to: previous 1.106: preferred, colored
Changes since revision 1.106: +4 -2
lines
to garnish, dust with _KERNEL_OPT
Revision 1.99.4.2: download - view: text, markup, annotated - select for diffs
Sat Jun 6 14:40:22 2015 UTC (11 years, 5 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.99.4.1: preferred, colored; branchpoint 1.99: preferred, colored
Changes since revision 1.99.4.1: +8 -8
lines
Sync with HEAD
Revision 1.106: download - view: text, markup, annotated - select for diffs
Mon Apr 20 13:44:16 2015 UTC (11 years, 6 months ago) by riastradh
Branches: MAIN
CVS tags: nick-nhusb-base-20150606
Diff to: previous 1.105: preferred, colored
Changes since revision 1.105: +5 -5
lines
Make vget always return vnode unlocked.
Convert callers who want locks to use vn_lock afterward.
Add extra argument so the compiler will report stragglers.
Revision 1.99.4.1: download - view: text, markup, annotated - select for diffs
Mon Apr 6 15:18:20 2015 UTC (11 years, 7 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.99: preferred, colored
Changes since revision 1.99: +215 -109
lines
Sync with HEAD
Revision 1.105: download - view: text, markup, annotated - select for diffs
Fri Jan 16 20:10:25 2015 UTC (11 years, 10 months ago) by dennis
Branches: MAIN
CVS tags: nick-nhusb-base-20150406
Diff to: previous 1.104: preferred, colored
Changes since revision 1.104: +3 -3
lines
Add a membar_datadep_consumer() before dereferencing the pointer
to a cache entry in cache_lookup_entry(). The entries are being
added to the list it is looking at without mutually-exclusive locking,
so this is necessary to keep some Alphas from seeing stale data
when the pointer is newly-updated.
XXX this is doing lockless adds to a list maintained with LIST_* macros.
Revision 1.104: download - view: text, markup, annotated - select for diffs
Sun Jan 4 19:31:00 2015 UTC (11 years, 10 months ago) by pooka
Branches: MAIN
Diff to: previous 1.103: preferred, colored
Changes since revision 1.103: +12 -4
lines
initialize sysctl node from init() instead of via linkset
Revision 1.103: download - view: text, markup, annotated - select for diffs
Wed Dec 24 20:01:21 2014 UTC (11 years, 10 months ago) by dennis
Branches: MAIN
Diff to: previous 1.102: preferred, colored
Changes since revision 1.102: +175 -85
lines
Update stats-keeping in sys/kern/vfs_cache.c to remove (most)
races while allowing consistent lockless sampling of the per-cpu
statistics without atomic operations. Update comment describing
the locking protocol to include this.
These files were fumble-fingered out of the last commit.
Revision 1.102: download - view: text, markup, annotated - select for diffs
Sun Dec 7 22:23:38 2014 UTC (11 years, 11 months ago) by dennis
Branches: MAIN
Diff to: previous 1.101: preferred, colored
Changes since revision 1.101: +45 -37
lines
Take 2. Do a fairly mechanical reversion of the locking protocol
to that of revision 1.94. Add a comment documenting my best guess
about the locking requirements in this subsystem. Don't take locks
solely for the sake of stats counter increments; the locking around
the increment of ->ncs_pass2 and/or ->ncs_2passes caused a deadlock.
Defer fixing stats-keeping to allow this change to be easily backed
out of.
Revision 1.101: download - view: text, markup, annotated - select for diffs
Wed Dec 3 01:30:32 2014 UTC (11 years, 11 months ago) by christos
Branches: MAIN
Diff to: previous 1.100: preferred, colored
Changes since revision 1.100: +52 -83
lines
Reverts previous: Causes all processes to hang in tstile in rw_lock from
genfs_lock during a make -j 20 build
Revision 1.100: download - view: text, markup, annotated - select for diffs
Sun Nov 30 04:11:03 2014 UTC (11 years, 11 months ago) by dennis
Branches: MAIN
Diff to: previous 1.99: preferred, colored
Changes since revision 1.99: +85 -54
lines
Do a fairly mechanical reversion of the locking protocol to that
of revision 1.97. Add a comment documenting my best guess about
the locking requirements in this subsystem. Leave the locks
taken solely for stats counter increments in place for now; they
should ultimately go but that is a bigger change.
Revision 1.89.2.2: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:04:29 2014 UTC (12 years, 3 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.89.2.1: preferred, colored; branchpoint 1.89: preferred, colored
Changes since revision 1.89.2.1: +154 -95
lines
Rebase to HEAD as of a few days ago.
Revision 1.94.2.1: download - view: text, markup, annotated - select for diffs
Sun Aug 10 06:55:58 2014 UTC (12 years, 3 months ago) by tls
Branches: tls-earlyentropy
Diff to: previous 1.94: preferred, colored; next MAIN 1.95: preferred, colored
Changes since revision 1.94: +120 -24
lines
Rebase.
Revision 1.99: download - view: text, markup, annotated - select for diffs
Mon Jun 16 12:28:10 2014 UTC (12 years, 5 months ago) by joerg
Branches: MAIN
CVS tags: tls-maxphys-base,
tls-earlyentropy-base,
nick-nhusb-base,
netbsd-7-nhusb-base-20170116,
netbsd-7-nhusb-base,
netbsd-7-nhusb,
netbsd-7-base,
netbsd-7-2-RELEASE,
netbsd-7-1-RELEASE,
netbsd-7-1-RC2,
netbsd-7-1-RC1,
netbsd-7-1-2-RELEASE,
netbsd-7-1-1-RELEASE,
netbsd-7-1,
netbsd-7-0-RELEASE,
netbsd-7-0-RC3,
netbsd-7-0-RC2,
netbsd-7-0-RC1,
netbsd-7-0-2-RELEASE,
netbsd-7-0-1-RELEASE,
netbsd-7-0,
netbsd-7
Branch point for: nick-nhusb
Diff to: previous 1.98: preferred, colored
Changes since revision 1.98: +10 -4
lines
Require the actual namecache_look around cache_lookup_entry.
Add one last case of missing stat locking.
Revision 1.98: download - view: text, markup, annotated - select for diffs
Sat Jun 14 16:12:34 2014 UTC (12 years, 5 months ago) by joerg
Branches: MAIN
Diff to: previous 1.97: preferred, colored
Changes since revision 1.97: +20 -10
lines
Make the stat mutex a leaf. XXX Use atomic counters.
Revision 1.97: download - view: text, markup, annotated - select for diffs
Tue Jun 3 21:16:15 2014 UTC (12 years, 5 months ago) by joerg
Branches: MAIN
Diff to: previous 1.96: preferred, colored
Changes since revision 1.96: +49 -2
lines
Provide sysctl for namecache statistics.
Revision 1.96: download - view: text, markup, annotated - select for diffs
Tue Jun 3 19:42:17 2014 UTC (12 years, 5 months ago) by joerg
Branches: MAIN
Diff to: previous 1.95: preferred, colored
Changes since revision 1.95: +19 -12
lines
Don't play loop games, just enumerate the 10 fields explicitly.
Revision 1.95: download - view: text, markup, annotated - select for diffs
Tue Jun 3 19:30:30 2014 UTC (12 years, 5 months ago) by joerg
Branches: MAIN
Diff to: previous 1.94: preferred, colored
Changes since revision 1.94: +30 -4
lines
Introduce two helper functions to centralise the namecache statistics
in vfs_cache.c. Use consistent locking around the per-cpu data.
Revision 1.88.2.3: download - view: text, markup, annotated - select for diffs
Thu May 22 11:41:04 2014 UTC (12 years, 5 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.88.2.2: preferred, colored; branchpoint 1.88: preferred, colored; next MAIN 1.89: preferred, colored
Changes since revision 1.88.2.2: +40 -77
lines
sync with head.
for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.
this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
Revision 1.91.2.1: download - view: text, markup, annotated - select for diffs
Sun May 18 17:46:08 2014 UTC (12 years, 6 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.91: preferred, colored; next MAIN 1.92: preferred, colored
Changes since revision 1.91: +40 -77
lines
sync with head
Revision 1.94: download - view: text, markup, annotated - select for diffs
Fri Feb 7 15:29:22 2014 UTC (12 years, 9 months ago) by hannken
Branches: MAIN
CVS tags: yamt-pagecache-base9,
rmind-smpnet-nbase,
rmind-smpnet-base,
riastradh-xf86-video-intel-2-7-1-pre-2-21-15,
riastradh-drm2-base3
Branch point for: tls-earlyentropy
Diff to: previous 1.93: preferred, colored
Changes since revision 1.93: +2 -24
lines
Change vnode operation lookup to return the resulting vnode *vpp unlocked.
Change cache_lookup() to return an unlocked vnode.
Discussed on tech-kern@
Welcome to 6.99.31
Revision 1.93: download - view: text, markup, annotated - select for diffs
Mon Jan 20 07:47:22 2014 UTC (12 years, 9 months ago) by hannken
Branches: MAIN
Diff to: previous 1.92: preferred, colored
Changes since revision 1.92: +4 -4
lines
Change cache_prune() to test for end-of-list before testing for an
invalid entry. Prevents a lifelock when the end-of-list marker
gets invalid while scanning the list and all entries are recent.
Revision 1.92: download - view: text, markup, annotated - select for diffs
Tue Oct 29 09:53:51 2013 UTC (13 years ago) by hannken
Branches: MAIN
Diff to: previous 1.91: preferred, colored
Changes since revision 1.91: +38 -53
lines
Vnode API cleanup pass 1.
- Make these defines and functions private to vfs_vnode.c:
VC_MASK, VC_LOCK, DOCLOSE, VI_IANCTREDO and VI_INACTNOW
vclean() and vrelel()
- Remove the long time unused lwp argument from vrecycle().
- Remove vtryget(), it is responsible for ugly hacks and doesn't
look that effective.
Presented on tech-kern.
Welcome to 6.99.25
Revision 1.88.2.2: download - view: text, markup, annotated - select for diffs
Wed Jan 16 05:33:44 2013 UTC (13 years, 10 months ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.88.2.1: preferred, colored; branchpoint 1.88: preferred, colored
Changes since revision 1.88.2.1: +173 -83
lines
sync with (a bit old) head
Revision 1.89.2.1: download - view: text, markup, annotated - select for diffs
Tue Nov 20 03:02:44 2012 UTC (13 years, 11 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.89: preferred, colored
Changes since revision 1.89: +173 -83
lines
Resync to 2012-11-19 00:00:00 UTC
Revision 1.91: download - view: text, markup, annotated - select for diffs
Mon Nov 5 17:27:39 2012 UTC (14 years ago) by dholland
Branches: MAIN
CVS tags: yamt-pagecache-base8,
yamt-pagecache-base7,
riastradh-drm2-base2,
riastradh-drm2-base1,
riastradh-drm2-base,
riastradh-drm2,
khorben-n900,
agc-symver-base,
agc-symver
Branch point for: rmind-smpnet
Diff to: previous 1.90: preferred, colored
Changes since revision 1.90: +35 -33
lines
Excise struct componentname from the namecache.
This uglifies the interface, because several operations need to be
passed the namei flags and cache_lookup also needs for the time being
to be passed cnp->cn_nameiop. Nonetheless, it's a net benefit.
The glop should be able to go away eventually but requires structural
cleanup elsewhere first.
This change requires a kernel bump.
Revision 1.90: download - view: text, markup, annotated - select for diffs
Mon Nov 5 17:24:11 2012 UTC (14 years ago) by dholland
Branches: MAIN
Diff to: previous 1.89: preferred, colored
Changes since revision 1.89: +148 -60
lines
Disentangle the namecache from the internals of namei.
- Move the namecache's hash computation to inside the namecache code,
instead of being spread out all over the place. Remove cn_hash from
struct componentname and delete all uses of it.
- It is no longer necessary (if it ever was) for cache_lookup and
cache_lookup_raw to clear MAKEENTRY from cnp->cn_flags for the cases
that cache_enter already checks for.
- Rearrange the interface of cache_lookup (and cache_lookup_raw) to
make it somewhat simpler, to exclude certain nonexistent error
conditions, and (most importantly) to make it not require write access
to cnp->cn_flags.
This change requires a kernel bump.
Revision 1.88.2.1: download - view: text, markup, annotated - select for diffs
Tue Oct 30 17:22:38 2012 UTC (14 years ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.88: preferred, colored
Changes since revision 1.88: +34 -28
lines
sync with head
Revision 1.88.8.1: download - view: text, markup, annotated - select for diffs
Sun Aug 12 12:59:49 2012 UTC (14 years, 3 months ago) by martin
Branches: netbsd-6
CVS tags: netbsd-6-1-RELEASE,
netbsd-6-1-RC4,
netbsd-6-1-RC3,
netbsd-6-1-RC2,
netbsd-6-1-RC1,
netbsd-6-1-5-RELEASE,
netbsd-6-1-4-RELEASE,
netbsd-6-1-3-RELEASE,
netbsd-6-1-2-RELEASE,
netbsd-6-1-1-RELEASE,
netbsd-6-1,
netbsd-6-0-RELEASE,
netbsd-6-0-RC2,
netbsd-6-0-RC1,
netbsd-6-0-6-RELEASE,
netbsd-6-0-5-RELEASE,
netbsd-6-0-4-RELEASE,
netbsd-6-0-3-RELEASE,
netbsd-6-0-2-RELEASE,
netbsd-6-0-1-RELEASE,
netbsd-6-0,
matt-nb6-plus-nbase,
matt-nb6-plus-base,
matt-nb6-plus
Diff to: previous 1.88: preferred, colored; next MAIN 1.89: preferred, colored
Changes since revision 1.88: +32 -26
lines
Pull up following revision(s) (requested by manu in ticket #484):
sys/fs/nilfs/nilfs_vnops.c: revision 1.18
sys/ufs/ufs/ufs_lookup.c: revision 1.117
sys/nfs/nfs_vnops.c: revision 1.295
sys/ufs/chfs/chfs_vnops.c: revision 1.8
sys/ufs/ext2fs/ext2fs_lookup.c: revision 1.70
sys/fs/unionfs/unionfs_vnops.c: revision 1.6
sys/kern/vfs_cache.c: revision 1.89
sys/fs/efs/efs_vnops.c: revision 1.26
sys/fs/hfs/hfs_vnops.c: revision 1.26
sys/fs/adosfs/adlookup.c: revision 1.16
sys/fs/puffs/puffs_vnops.c: revision 1.168
sys/fs/tmpfs/tmpfs_vnops.c: revision 1.98
sys/fs/ntfs/ntfs_vnops.c: revision 1.52
sys/fs/cd9660/cd9660_lookup.c: revision 1.20
sys/fs/msdosfs/msdosfs_lookup.c: revision 1.24
sys/fs/smbfs/smbfs_vnops.c: revision 1.80
sys/fs/udf/udf_vnops.c: revision 1.72
sys/fs/filecorefs/filecore_lookup.c: revision 1.14
sys/fs/puffs/puffs_node.c: revision 1.25
Move some the test for MAKEENTRY into the cache_enter(9). Make some
variables in vfs_cache.c static, __read_mostly, etc.
No objection on tech-kern@.
Revision 1.89: download - view: text, markup, annotated - select for diffs
Sun Jul 22 00:53:18 2012 UTC (14 years, 3 months ago) by rmind
Branches: MAIN
CVS tags: yamt-pagecache-base6
Branch point for: tls-maxphys
Diff to: previous 1.88: preferred, colored
Changes since revision 1.88: +34 -28
lines
Move some the test for MAKEENTRY into the cache_enter(9). Make some
variables in vfs_cache.c static, __read_mostly, etc.
No objection on tech-kern@.
Revision 1.87.6.1: download - view: text, markup, annotated - select for diffs
Thu Jun 23 14:20:21 2011 UTC (15 years, 4 months ago) by cherry
Branches: cherry-xenmp
Diff to: previous 1.87: preferred, colored; next MAIN 1.88: preferred, colored
Changes since revision 1.87: +5 -5
lines
Catchup with rmind-uvmplock merge.
Revision 1.88: download - view: text, markup, annotated - select for diffs
Sun Jun 12 03:35:56 2011 UTC (15 years, 5 months ago) by rmind
Branches: MAIN
CVS tags: yamt-pagecache-base5,
yamt-pagecache-base4,
yamt-pagecache-base3,
yamt-pagecache-base2,
yamt-pagecache-base,
netbsd-6-base,
jmcneill-usbmp-pre-base2,
jmcneill-usbmp-base9,
jmcneill-usbmp-base8,
jmcneill-usbmp-base7,
jmcneill-usbmp-base6,
jmcneill-usbmp-base5,
jmcneill-usbmp-base4,
jmcneill-usbmp-base3,
jmcneill-usbmp-base2,
jmcneill-usbmp-base10,
jmcneill-usbmp-base,
jmcneill-usbmp,
jmcneill-audiomp3-base,
jmcneill-audiomp3
Branch point for: yamt-pagecache,
netbsd-6
Diff to: previous 1.87: preferred, colored
Changes since revision 1.87: +5 -5
lines
Welcome to 5.99.53! Merge rmind-uvmplock branch:
- Reorganize locking in UVM and provide extra serialisation for pmap(9).
New lock order: [vmpage-owner-lock] -> pmap-lock.
- Simplify locking in some pmap(9) modules by removing P->V locking.
- Use lock object on vmobjlock (and thus vnode_t::v_interlock) to share
the locks amongst UVM objects where necessary (tmpfs, layerfs, unionfs).
- Rewrite and optimise x86 TLB shootdown code, make it simpler and cleaner.
Add TLBSTATS option for x86 to collect statistics about TLB shootdowns.
- Unify /dev/mem et al in MI code and provide required locking (removes
kernel-lock on some ports). Also, avoid cache-aliasing issues.
Thanks to Andrew Doran and Joerg Sonnenberger, as their initial patches
formed the core changes of this branch.
Revision 1.84.4.3: download - view: text, markup, annotated - select for diffs
Sat Mar 5 20:55:25 2011 UTC (15 years, 8 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.84.4.2: preferred, colored; branchpoint 1.84: preferred, colored; next MAIN 1.85: preferred, colored
Changes since revision 1.84.4.2: +25 -10
lines
sync with head
Revision 1.84.2.1: download - view: text, markup, annotated - select for diffs
Tue Aug 17 06:47:33 2010 UTC (16 years, 3 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.84: preferred, colored; next MAIN 1.85: preferred, colored
Changes since revision 1.84: +26 -11
lines
Sync with HEAD.
Revision 1.74.4.3: download - view: text, markup, annotated - select for diffs
Wed Aug 11 22:54:44 2010 UTC (16 years, 3 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.74.4.2: preferred, colored; branchpoint 1.74: preferred, colored; next MAIN 1.75: preferred, colored
Changes since revision 1.74.4.2: +26 -11
lines
sync with head.
Revision 1.87: download - view: text, markup, annotated - select for diffs
Wed Jul 21 17:52:12 2010 UTC (16 years, 4 months ago) by hannken
Branches: MAIN
CVS tags: yamt-nfs-mp-base11,
yamt-nfs-mp-base10,
uebayasi-xip-base4,
uebayasi-xip-base3,
uebayasi-xip-base2,
rmind-uvmplock-nbase,
rmind-uvmplock-base,
matt-mips64-premerge-20101231,
jruoho-x86intr-base,
jruoho-x86intr,
cherry-xenmp-base,
bouyer-quota2-nbase,
bouyer-quota2-base,
bouyer-quota2
Branch point for: cherry-xenmp
Diff to: previous 1.86: preferred, colored
Changes since revision 1.86: +5 -5
lines
Make holding v_interlock mandatory for callers of vget().
Announced some time ago on tech-kern.
Revision 1.86: download - view: text, markup, annotated - select for diffs
Wed Jul 21 09:01:36 2010 UTC (16 years, 4 months ago) by hannken
Branches: MAIN
Diff to: previous 1.85: preferred, colored
Changes since revision 1.85: +23 -8
lines
Using cache_revlookup() leads to vnode races as it returns an unreferenced
vnode that may disappear before the caller has a chance to reference it.
Reference the vnode while the name cache is locked.
No objections on tech-kern.
Revision 1.84.4.2: download - view: text, markup, annotated - select for diffs
Sat Jul 3 01:19:55 2010 UTC (16 years, 4 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.84.4.1: preferred, colored; branchpoint 1.84: preferred, colored
Changes since revision 1.84.4.1: +3 -3
lines
sync with head
Revision 1.85: download - view: text, markup, annotated - select for diffs
Thu Jun 24 13:03:11 2010 UTC (16 years, 4 months ago) by hannken
Branches: MAIN
Diff to: previous 1.84: preferred, colored
Changes since revision 1.84: +3 -3
lines
Clean up vnode lock operations pass 2:
VOP_UNLOCK(vp, flags) -> VOP_UNLOCK(vp): Remove the unneeded flags argument.
Welcome to 5.99.32.
Discussed on tech-kern.
Revision 1.84.4.1: download - view: text, markup, annotated - select for diffs
Tue Mar 16 15:38:10 2010 UTC (16 years, 8 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.84: preferred, colored
Changes since revision 1.84: +4 -4
lines
Change struct uvm_object::vmobjlock to be dynamically allocated with
mutex_obj_alloc(). It allows us to share the locks among UVM objects.
Revision 1.82.2.1: download - view: text, markup, annotated - select for diffs
Wed May 13 17:21:58 2009 UTC (17 years, 6 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.82: preferred, colored; next MAIN 1.83: preferred, colored
Changes since revision 1.82: +4 -3
lines
Sync with HEAD.
Commit is split, to avoid a "too many arguments" protocol error.
Revision 1.74.4.2: download - view: text, markup, annotated - select for diffs
Mon May 4 08:13:49 2009 UTC (17 years, 6 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.74.4.1: preferred, colored; branchpoint 1.74: preferred, colored
Changes since revision 1.74.4.1: +146 -98
lines
sync with head.
Revision 1.80.2.2: download - view: text, markup, annotated - select for diffs
Tue Mar 3 18:32:57 2009 UTC (17 years, 8 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.80.2.1: preferred, colored; branchpoint 1.80: preferred, colored; next MAIN 1.81: preferred, colored
Changes since revision 1.80.2.1: +4 -3
lines
Sync with HEAD.
Revision 1.84: download - view: text, markup, annotated - select for diffs
Wed Feb 18 13:36:11 2009 UTC (17 years, 9 months ago) by yamt
Branches: MAIN
CVS tags: yamt-nfs-mp-base9,
yamt-nfs-mp-base8,
yamt-nfs-mp-base7,
yamt-nfs-mp-base6,
yamt-nfs-mp-base5,
yamt-nfs-mp-base4,
yamt-nfs-mp-base3,
uebayasi-xip-base1,
uebayasi-xip-base,
nick-hppapmap-base4,
nick-hppapmap-base3,
nick-hppapmap-base2,
nick-hppapmap-base,
matt-premerge-20091211,
jymxensuspend-base,
jym-xensuspend-nbase,
jym-xensuspend-base
Branch point for: uebayasi-xip,
rmind-uvmplock
Diff to: previous 1.83: preferred, colored
Changes since revision 1.83: +3 -2
lines
cache_lookup_entry: add an assertion.
Revision 1.83: download - view: text, markup, annotated - select for diffs
Wed Feb 18 13:24:18 2009 UTC (17 years, 9 months ago) by yamt
Branches: MAIN
Diff to: previous 1.82: preferred, colored
Changes since revision 1.82: +3 -3
lines
cache_purge1: consistently unlock ncp a little earlier.
Revision 1.80.2.1: download - view: text, markup, annotated - select for diffs
Mon Jan 19 13:19:40 2009 UTC (17 years, 10 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.80: preferred, colored
Changes since revision 1.80: +3 -5
lines
Sync with HEAD.
Revision 1.72.14.4: download - view: text, markup, annotated - select for diffs
Sat Jan 17 13:29:20 2009 UTC (17 years, 10 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.72.14.3: preferred, colored; branchpoint 1.72: preferred, colored; next MAIN 1.73: preferred, colored
Changes since revision 1.72.14.3: +5 -3
lines
Sync with HEAD.
Revision 1.82: download - view: text, markup, annotated - select for diffs
Sat Jan 17 07:02:35 2009 UTC (17 years, 10 months ago) by yamt
Branches: MAIN
CVS tags: mjf-devfs2-base
Branch point for: jym-xensuspend
Diff to: previous 1.81: preferred, colored
Changes since revision 1.81: +2 -4
lines
malloc -> kmem_alloc.
Revision 1.81: download - view: text, markup, annotated - select for diffs
Fri Jan 16 06:59:21 2009 UTC (17 years, 10 months ago) by yamt
Branches: MAIN
Diff to: previous 1.80: preferred, colored
Changes since revision 1.80: +3 -3
lines
cache_prune: use (a - b > 0) rather than (a > b) to compare ticks.
Revision 1.77.4.2: download - view: text, markup, annotated - select for diffs
Sat Dec 13 01:15:09 2008 UTC (17 years, 11 months ago) by haad
Branches: haad-dm
Diff to: previous 1.77.4.1: preferred, colored; branchpoint 1.77: preferred, colored; next MAIN 1.78: preferred, colored
Changes since revision 1.77.4.1: +6 -2
lines
Update haad-dm branch to haad-dm-base2.
Revision 1.80: download - view: text, markup, annotated - select for diffs
Sat Oct 25 14:20:17 2008 UTC (18 years ago) by yamt
Branches: MAIN
CVS tags: netbsd-5-base,
netbsd-5-2-RELEASE,
netbsd-5-2-RC1,
netbsd-5-2-3-RELEASE,
netbsd-5-2-2-RELEASE,
netbsd-5-2-1-RELEASE,
netbsd-5-2,
netbsd-5-1-RELEASE,
netbsd-5-1-RC4,
netbsd-5-1-RC3,
netbsd-5-1-RC2,
netbsd-5-1-RC1,
netbsd-5-1-5-RELEASE,
netbsd-5-1-4-RELEASE,
netbsd-5-1-3-RELEASE,
netbsd-5-1-2-RELEASE,
netbsd-5-1-1-RELEASE,
netbsd-5-1,
netbsd-5-0-RELEASE,
netbsd-5-0-RC4,
netbsd-5-0-RC3,
netbsd-5-0-RC2,
netbsd-5-0-RC1,
netbsd-5-0-2-RELEASE,
netbsd-5-0-1-RELEASE,
netbsd-5-0,
netbsd-5,
matt-nb5-pq3-base,
matt-nb5-pq3,
matt-nb5-mips64-u2-k2-k4-k7-k8-k9,
matt-nb5-mips64-u1-k1-k5,
matt-nb5-mips64-premerge-20101231,
matt-nb5-mips64-premerge-20091211,
matt-nb5-mips64-k15,
matt-nb5-mips64,
matt-nb4-mips64-k7-u2a-k9b,
haad-nbase2,
haad-dm-base2,
haad-dm-base,
ad-audiomp2-base,
ad-audiomp2
Branch point for: nick-hppapmap
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +4 -2
lines
cache_lookup_raw: update "goodhits" statistics to be less confused.
add an XXX comment.
Revision 1.79: download - view: text, markup, annotated - select for diffs
Sat Oct 25 14:18:18 2008 UTC (18 years ago) by yamt
Branches: MAIN
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +4 -2
lines
add assertions.
Revision 1.77.4.1: download - view: text, markup, annotated - select for diffs
Sun Oct 19 22:17:29 2008 UTC (18 years, 1 month ago) by haad
Branches: haad-dm
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +3 -2
lines
Sync with HEAD.
Revision 1.72.14.3: download - view: text, markup, annotated - select for diffs
Sun Sep 28 10:40:54 2008 UTC (18 years, 1 month ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.72.14.2: preferred, colored; branchpoint 1.72: preferred, colored
Changes since revision 1.72.14.2: +1 -0
lines
Sync with HEAD.
Revision 1.76.2.2: download - view: text, markup, annotated - select for diffs
Thu Sep 18 04:31:45 2008 UTC (18 years, 2 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.76.2.1: preferred, colored; branchpoint 1.76: preferred, colored; next MAIN 1.77: preferred, colored
Changes since revision 1.76.2.1: +3 -2
lines
Sync with wrstuden-revivesa-base-2.
Revision 1.78: download - view: text, markup, annotated - select for diffs
Wed Aug 20 15:34:59 2008 UTC (18 years, 3 months ago) by pooka
Branches: MAIN
CVS tags: wrstuden-revivesa-base-4,
wrstuden-revivesa-base-3,
wrstuden-revivesa-base-2,
matt-mips64-base2,
haad-dm-base1
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +3 -2
lines
Release vnode in cache_lookup() error branch if locking fails.
Revision 1.76.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 23 04:31:52 2008 UTC (18 years, 4 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +138 -94
lines
Sync w/ -current. 34 merge conflicts to follow.
Revision 1.74.2.2: download - view: text, markup, annotated - select for diffs
Tue Jun 17 09:15:03 2008 UTC (18 years, 5 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.74.2.1: preferred, colored; branchpoint 1.74: preferred, colored; next MAIN 1.75: preferred, colored
Changes since revision 1.74.2.1: +138 -94
lines
sync with head.
Revision 1.72.14.2: download - view: text, markup, annotated - select for diffs
Thu Jun 5 19:14:36 2008 UTC (18 years, 5 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.72.14.1: preferred, colored; branchpoint 1.72: preferred, colored
Changes since revision 1.72.14.1: +136 -92
lines
Sync with HEAD.
Also fix build.
Revision 1.77: download - view: text, markup, annotated - select for diffs
Tue Jun 3 15:50:22 2008 UTC (18 years, 5 months ago) by ad
Branches: MAIN
CVS tags: yamt-pf42-base4,
wrstuden-revivesa-base-1,
wrstuden-revivesa-base,
simonb-wapbl-nbase,
simonb-wapbl-base,
simonb-wapbl
Branch point for: haad-dm
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +138 -94
lines
vfs_cache:
- Don't use goto in critical paths, it can confuse the compiler.
- Sprinkle some branch hints.
- Make namecache stats per-CPU and collate once per second.
- Use vtryget().
Revision 1.72.14.1: download - view: text, markup, annotated - select for diffs
Mon Jun 2 13:24:14 2008 UTC (18 years, 5 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +410 -140
lines
Sync with HEAD.
Revision 1.74.2.1: download - view: text, markup, annotated - select for diffs
Sun May 18 12:35:11 2008 UTC (18 years, 6 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +10 -19
lines
sync with head.
Revision 1.74.4.1: download - view: text, markup, annotated - select for diffs
Fri May 16 02:25:28 2008 UTC (18 years, 6 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +10 -19
lines
sync with head.
Revision 1.76: download - view: text, markup, annotated - select for diffs
Mon May 5 17:11:17 2008 UTC (18 years, 6 months ago) by ad
Branches: MAIN
CVS tags: yamt-pf42-base3,
yamt-pf42-base2,
yamt-nfs-mp-base2,
hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +10 -12
lines
- Convert hashinit() to use kmem_alloc(). The hash tables can be large
and it's better to not have them in kmem_map.
- Convert a couple of minor items along the way to kmem_alloc().
- Fix some memory leaks.
Revision 1.75: download - view: text, markup, annotated - select for diffs
Mon Apr 28 20:24:05 2008 UTC (18 years, 6 months ago) by martin
Branches: MAIN
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +2 -9
lines
Remove clause 3 and 4 from TNF licenses
Revision 1.74: download - view: text, markup, annotated - select for diffs
Sat Apr 12 17:34:26 2008 UTC (18 years, 7 months ago) by ad
Branches: MAIN
CVS tags: yamt-pf42-baseX,
yamt-pf42-base,
yamt-nfs-mp-base
Branch point for: yamt-pf42,
yamt-nfs-mp
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +8 -3
lines
cache_enter: inline LIST_INSERT_HEAD so that the membar_producer() can be
put in the right spot. The 'next' link in the new entry must become globally
visible before the list head is updated. This could have affected systems
with weak memory ordering like the alpha.
Revision 1.73: download - view: text, markup, annotated - select for diffs
Fri Apr 11 15:25:24 2008 UTC (18 years, 7 months ago) by ad
Branches: MAIN
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +403 -129
lines
Restructure the name cache code to eliminate most lock contention
resulting from forward lookups. Discussed on tech-kern@.
Revision 1.70.8.2: download - view: text, markup, annotated - select for diffs
Wed Jan 9 01:56:29 2008 UTC (18 years, 10 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.70.8.1: preferred, colored; branchpoint 1.70: preferred, colored; next MAIN 1.71: preferred, colored
Changes since revision 1.70.8.1: +4 -4
lines
sync with HEAD
Revision 1.70.14.1: download - view: text, markup, annotated - select for diffs
Mon Nov 19 00:48:58 2007 UTC (19 years ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.70: preferred, colored; next MAIN 1.71: preferred, colored
Changes since revision 1.70: +11 -8
lines
Sync with HEAD.
Revision 1.61.12.5: download - view: text, markup, annotated - select for diffs
Thu Nov 15 11:44:56 2007 UTC (19 years ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.61.12.4: preferred, colored; branchpoint 1.61: preferred, colored; next MAIN 1.62: preferred, colored
Changes since revision 1.61.12.4: +11 -8
lines
sync with head.
Revision 1.70.6.2: download - view: text, markup, annotated - select for diffs
Wed Nov 14 19:04:47 2007 UTC (19 years ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.70.6.1: preferred, colored; branchpoint 1.70: preferred, colored; next MAIN 1.71: preferred, colored
Changes since revision 1.70.6.1: +4 -4
lines
Sync with HEAD.
Revision 1.70.12.1: download - view: text, markup, annotated - select for diffs
Tue Nov 13 16:02:35 2007 UTC (19 years ago) by bouyer
Branches: bouyer-xenamd64
Diff to: previous 1.70: preferred, colored; next MAIN 1.71: preferred, colored
Changes since revision 1.70: +11 -8
lines
Sync with HEAD
Revision 1.72: download - view: text, markup, annotated - select for diffs
Sun Nov 11 23:22:25 2007 UTC (19 years ago) by matt
Branches: MAIN
CVS tags: yamt-lazymbuf-base15,
yamt-lazymbuf-base14,
yamt-kmem-base3,
yamt-kmem-base2,
yamt-kmem-base,
yamt-kmem,
vmlocking2-base3,
vmlocking2-base2,
vmlocking2-base1,
vmlocking2,
vmlocking-nbase,
reinoud-bufcleanup-nbase,
reinoud-bufcleanup-base,
nick-net80211-sync-base,
nick-net80211-sync,
mjf-devfs-base,
matt-armv6-nbase,
matt-armv6-base,
keiichi-mipv6-nbase,
keiichi-mipv6-base,
keiichi-mipv6,
jmcneill-pm-base,
hpcarm-cleanup-base,
cube-autoconf-base,
cube-autoconf,
bouyer-xeni386-nbase,
bouyer-xeni386-merge1,
bouyer-xeni386-base,
bouyer-xeni386,
bouyer-xenamd64-base2,
bouyer-xenamd64-base,
ad-socklock-base1
Branch point for: mjf-devfs2
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +4 -4
lines
Change some initialization of static queues to compile time.
(xxx_INIT to xxx_HEAD_INITIALIZER). Drop code which inits
non-auto (global or static) variables to 0 since that's
already implied by being non-auto. Init some static/global
cpu_simple_locks at compile time.
Revision 1.70.6.1: download - view: text, markup, annotated - select for diffs
Sun Nov 11 16:48:18 2007 UTC (19 years ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +9 -6
lines
Sync with HEAD.
Revision 1.70.8.1: download - view: text, markup, annotated - select for diffs
Thu Nov 8 11:00:10 2007 UTC (19 years ago) by matt
Branches: matt-armv6
CVS tags: matt-armv6-prevmlocking
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +9 -6
lines
sync with -HEAD
Revision 1.71: download - view: text, markup, annotated - select for diffs
Wed Nov 7 00:23:25 2007 UTC (19 years ago) by ad
Branches: MAIN
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +9 -6
lines
Merge from vmlocking:
- pool_cache changes.
- Debugger/procfs locking fixes.
- Other minor changes.
Revision 1.61.12.4: download - view: text, markup, annotated - select for diffs
Mon Sep 3 14:41:20 2007 UTC (19 years, 2 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.61.12.3: preferred, colored; branchpoint 1.61: preferred, colored
Changes since revision 1.61.12.3: +7 -7
lines
sync with head.
Revision 1.68.6.3: download - view: text, markup, annotated - select for diffs
Sat Sep 1 12:56:50 2007 UTC (19 years, 2 months ago) by ad
Branches: vmlocking
Diff to: previous 1.68.6.2: preferred, colored; branchpoint 1.68: preferred, colored; next MAIN 1.69: preferred, colored
Changes since revision 1.68.6.2: +9 -6
lines
Update for pool_cache API changes.
Revision 1.69.2.1: download - view: text, markup, annotated - select for diffs
Wed Jul 11 20:10:22 2007 UTC (19 years, 4 months ago) by mjf
Branches: mjf-ufs-trans
Diff to: previous 1.69: preferred, colored; next MAIN 1.70: preferred, colored
Changes since revision 1.69: +6 -6
lines
Sync with head.
Revision 1.70: download - view: text, markup, annotated - select for diffs
Mon Jul 9 21:10:57 2007 UTC (19 years, 4 months ago) by ad
Branches: MAIN
CVS tags: yamt-x86pmap-base4,
yamt-x86pmap-base3,
yamt-x86pmap-base2,
yamt-x86pmap-base,
yamt-x86pmap,
vmlocking-base,
nick-csl-alignment-base5,
nick-csl-alignment-base,
nick-csl-alignment,
mjf-ufs-trans-base,
matt-mips64-base,
matt-mips64,
jmcneill-base,
hpcarm-cleanup
Branch point for: mjf-devfs,
matt-armv6,
jmcneill-pm,
bouyer-xenamd64
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +6 -6
lines
Merge some of the less invasive changes from the vmlocking branch:
- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements
Revision 1.68.6.2: download - view: text, markup, annotated - select for diffs
Sun May 13 17:36:36 2007 UTC (19 years, 6 months ago) by ad
Branches: vmlocking
Diff to: previous 1.68.6.1: preferred, colored; branchpoint 1.68: preferred, colored
Changes since revision 1.68.6.1: +6 -6
lines
- Pass the error number and residual count to biodone(), and let it handle
setting error indicators. Prepare to eliminate B_ERROR.
- Add a flag argument to brelse() to be set into the buf's flags, instead
of doing it directly. Typically used to set B_INVAL.
- Add a "struct cpu_info *" argument to kthread_create(), to be used to
create bound threads. Change "bool mpsafe" to "int flags".
- Allow exit of LWPs in the IDL state when (l != curlwp).
- More locking fixes & conversion to the new API.
Revision 1.68.2.1: download - view: text, markup, annotated - select for diffs
Sat Mar 24 14:56:06 2007 UTC (19 years, 7 months ago) by yamt
Branches: yamt-idlelwp
Diff to: previous 1.68: preferred, colored; next MAIN 1.69: preferred, colored
Changes since revision 1.68: +3 -3
lines
sync with head.
Revision 1.68.6.1: download - view: text, markup, annotated - select for diffs
Tue Mar 13 16:51:59 2007 UTC (19 years, 8 months ago) by ad
Branches: vmlocking
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +3 -3
lines
Sync with head.
Revision 1.69: download - view: text, markup, annotated - select for diffs
Mon Mar 12 18:18:34 2007 UTC (19 years, 8 months ago) by ad
Branches: MAIN
CVS tags: yamt-idlelwp-base8,
thorpej-atomic-base,
thorpej-atomic,
reinoud-bufcleanup
Branch point for: mjf-ufs-trans
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +3 -3
lines
Pass an ipl argument to pool_init/POOL_INIT to be used when initializing
the pool's lock.
Revision 1.61.12.3: download - view: text, markup, annotated - select for diffs
Mon Feb 26 09:11:21 2007 UTC (19 years, 8 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.61.12.2: preferred, colored; branchpoint 1.61: preferred, colored
Changes since revision 1.61.12.2: +31 -30
lines
sync with head.
Revision 1.66.2.1: download - view: text, markup, annotated - select for diffs
Sat Feb 17 23:27:47 2007 UTC (19 years, 9 months ago) by tron
Branches: netbsd-4
CVS tags: wrstuden-fixsa-newbase,
wrstuden-fixsa-base-1,
wrstuden-fixsa-base,
wrstuden-fixsa,
netbsd-4-0-RELEASE,
netbsd-4-0-RC5,
netbsd-4-0-RC4,
netbsd-4-0-RC3,
netbsd-4-0-RC2,
netbsd-4-0-RC1,
netbsd-4-0-1-RELEASE,
netbsd-4-0,
matt-nb4-arm-base,
matt-nb4-arm
Diff to: previous 1.66: preferred, colored; next MAIN 1.67: preferred, colored
Changes since revision 1.66: +3 -31
lines
Apply patch (requested by chs in ticket #422):
- Fix various deadlock problems with nullfs and unionfs.
- Speed up path lookups by upto 25%.
Revision 1.68: download - view: text, markup, annotated - select for diffs
Fri Feb 9 21:55:32 2007 UTC (19 years, 9 months ago) by ad
Branches: MAIN
CVS tags: post-newlock2-merge,
ad-audiomp-base,
ad-audiomp
Branch point for: yamt-idlelwp,
vmlocking
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +31 -30
lines
Merge newlock2 to head.
Revision 1.64.8.3: download - view: text, markup, annotated - select for diffs
Sun Feb 4 14:45:08 2007 UTC (19 years, 9 months ago) by ad
Branches: newlock2
Diff to: previous 1.64.8.2: preferred, colored; branchpoint 1.64: preferred, colored; next MAIN 1.65: preferred, colored
Changes since revision 1.64.8.2: +31 -30
lines
Replace simplelocks.
Revision 1.64.8.2: download - view: text, markup, annotated - select for diffs
Fri Jan 12 01:04:07 2007 UTC (19 years, 10 months ago) by ad
Branches: newlock2
Diff to: previous 1.64.8.1: preferred, colored; branchpoint 1.64: preferred, colored
Changes since revision 1.64.8.1: +3 -31
lines
Sync with head.
Revision 1.61.12.2: download - view: text, markup, annotated - select for diffs
Sat Dec 30 20:50:07 2006 UTC (19 years, 10 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.61.12.1: preferred, colored; branchpoint 1.61: preferred, colored
Changes since revision 1.61.12.1: +5 -31
lines
sync with head.
Revision 1.65.2.1: download - view: text, markup, annotated - select for diffs
Sun Dec 10 07:18:46 2006 UTC (19 years, 11 months ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.65: preferred, colored; next MAIN 1.66: preferred, colored
Changes since revision 1.65: +5 -31
lines
sync with head.
Revision 1.67: download - view: text, markup, annotated - select for diffs
Sat Dec 9 16:11:51 2006 UTC (19 years, 11 months ago) by chs
Branches: MAIN
CVS tags: yamt-splraiseipl-base5,
yamt-splraiseipl-base4,
yamt-splraiseipl-base3,
newlock2-nbase,
newlock2-base
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +3 -31
lines
a smorgasbord of improvements to vnode locking and path lookup:
- LOCKPARENT is no longer relevant for lookup(), relookup() or VOP_LOOKUP().
these now always return the parent vnode locked. namei() works as before.
lookup() and various other paths no longer acquire vnode locks in the
wrong order via vrele(). fixes PR 32535.
as a nice side effect, path lookup is also up to 25% faster.
- the above allows us to get rid of PDIRUNLOCK.
- also get rid of WANTPARENT (just use LOCKPARENT and unlock it).
- remove an assumption in layer_node_find() that all file systems implement
a recursive VOP_LOCK() (unionfs doesn't).
- require that all file systems supply vfs_vptofh and vfs_fhtovp routines.
fill in eopnotsupp() for file systems that don't support being exported
and remove the checks for NULL. (layerfs calls these without checking.)
- in union_lookup1(), don't change refcounts in the ISDOTDOT case, just
adjust which vnode is locked. fixes PR 33374.
- apply fixes for ufs_rename() from ufs_vnops.c rev. 1.61 to ext2fs_rename().
Revision 1.64.8.1: download - view: text, markup, annotated - select for diffs
Sat Nov 18 21:39:23 2006 UTC (20 years ago) by ad
Branches: newlock2
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +5 -3
lines
Sync with head.
Revision 1.66: download - view: text, markup, annotated - select for diffs
Wed Oct 25 18:56:38 2006 UTC (20 years ago) by christos
Branches: MAIN
CVS tags: netbsd-4-base
Branch point for: netbsd-4
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +4 -2
lines
enable namecache enter reverse for linux procfs lookups.
XXX: how expensive is that?
Revision 1.63.8.2: download - view: text, markup, annotated - select for diffs
Thu Sep 14 12:31:48 2006 UTC (20 years, 2 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.63.8.1: preferred, colored; branchpoint 1.63: preferred, colored; next MAIN 1.64: preferred, colored
Changes since revision 1.63.8.1: +3 -3
lines
sync with head.
Revision 1.65: download - view: text, markup, annotated - select for diffs
Sun Sep 10 05:51:33 2006 UTC (20 years, 2 months ago) by dbj
Branches: MAIN
CVS tags: yamt-splraiseipl-base2,
yamt-splraiseipl-base,
yamt-pdpolicy-base9
Branch point for: yamt-splraiseipl
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +3 -3
lines
make comment match logic in cache_lookup dvp unlock code
Revision 1.63.4.1: download - view: text, markup, annotated - select for diffs
Sat Sep 9 02:57:17 2006 UTC (20 years, 2 months ago) by rpaulo
Branches: rpaulo-netinet-merge-pcb
Diff to: previous 1.63: preferred, colored; next MAIN 1.64: preferred, colored
Changes since revision 1.63: +5 -8
lines
sync with head
Revision 1.61.12.1: download - view: text, markup, annotated - select for diffs
Wed Jun 21 15:09:39 2006 UTC (20 years, 5 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +7 -10
lines
sync with head.
Revision 1.63.12.1: download - view: text, markup, annotated - select for diffs
Wed May 24 15:50:42 2006 UTC (20 years, 5 months ago) by tron
Branches: peter-altq
Diff to: previous 1.63: preferred, colored; next MAIN 1.64: preferred, colored
Changes since revision 1.63: +5 -8
lines
Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
Revision 1.63.8.1: download - view: text, markup, annotated - select for diffs
Wed May 24 10:58:42 2006 UTC (20 years, 5 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +5 -8
lines
sync with head.
Revision 1.63.6.1: download - view: text, markup, annotated - select for diffs
Sat Apr 22 11:40:00 2006 UTC (20 years, 7 months ago) by simonb
Branches: simonb-timecounters
CVS tags: simonb-timcounters-final
Diff to: previous 1.63: preferred, colored; next MAIN 1.64: preferred, colored
Changes since revision 1.63: +5 -8
lines
Sync with head.
Revision 1.63.10.1: download - view: text, markup, annotated - select for diffs
Wed Apr 19 05:14:00 2006 UTC (20 years, 7 months ago) by elad
Branches: elad-kernelauth
Diff to: previous 1.63: preferred, colored; next MAIN 1.64: preferred, colored
Changes since revision 1.63: +5 -8
lines
sync with head.
Revision 1.64: download - view: text, markup, annotated - select for diffs
Sat Apr 15 04:33:48 2006 UTC (20 years, 7 months ago) by christos
Branches: MAIN
CVS tags: yamt-pdpolicy-base8,
yamt-pdpolicy-base7,
yamt-pdpolicy-base6,
yamt-pdpolicy-base5,
simonb-timecounters-base,
rpaulo-netinet-merge-pcb-base,
gdamore-uart-base,
gdamore-uart,
elad-kernelauth-base,
chap-midi-nbase,
chap-midi-base,
chap-midi,
abandoned-netbsd-4-base,
abandoned-netbsd-4
Branch point for: newlock2
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +5 -8
lines
Coverity CID 602: Remove always true if statement.
Revision 1.63: download - view: text, markup, annotated - select for diffs
Sat Dec 24 19:12:23 2005 UTC (20 years, 10 months ago) by perry
Branches: MAIN
CVS tags: yamt-uio_vmspace-base5,
yamt-uio_vmspace,
yamt-pdpolicy-base4,
yamt-pdpolicy-base3,
yamt-pdpolicy-base2,
yamt-pdpolicy-base,
peter-altq-base
Branch point for: yamt-pdpolicy,
simonb-timecounters,
rpaulo-netinet-merge-pcb,
peter-altq,
elad-kernelauth
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +4 -4
lines
Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.
Revision 1.62: download - view: text, markup, annotated - select for diffs
Sun Dec 11 12:24:30 2005 UTC (20 years, 11 months ago) by christos
Branches: MAIN
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +2 -2
lines
merge ktrace-lwp.
Revision 1.45.2.5: download - view: text, markup, annotated - select for diffs
Tue Sep 21 13:35:17 2004 UTC (22 years, 2 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.45.2.4: preferred, colored; next MAIN 1.46: preferred, colored
Changes since revision 1.45.2.4: +2 -2
lines
Fix the sync with head I botched.
Revision 1.45.2.4: download - view: text, markup, annotated - select for diffs
Sat Sep 18 14:53:04 2004 UTC (22 years, 2 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.45.2.3: preferred, colored
Changes since revision 1.45.2.3: +2 -2
lines
Sync with HEAD.
Revision 1.45.2.3: download - view: text, markup, annotated - select for diffs
Tue Aug 24 17:57:37 2004 UTC (22 years, 2 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.45.2.2: preferred, colored
Changes since revision 1.45.2.2: +4 -4
lines
Undo part of the ktrace/lwp changes. In particular:
* Remove the "lwp *" argument that was added to vget(). Turns out
that nothing actually used it!
* Remove the "lwp *" arguments that were added to VFS_ROOT(), VFS_VGET(),
and VFS_FHTOVP(); all they did was pass it to vget() (which, as noted
above, didn't use it).
* Remove all of the "lwp *" arguments to internal functions that were added
just to appease the above.
Revision 1.45.2.2: download - view: text, markup, annotated - select for diffs
Tue Aug 3 10:52:59 2004 UTC (22 years, 3 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.45.2.1: preferred, colored
Changes since revision 1.45.2.1: +234 -106
lines
Sync with HEAD
Revision 1.54.2.2: download - view: text, markup, annotated - select for diffs
Fri Jul 23 23:48:21 2004 UTC (22 years, 3 months ago) by he
Branches: netbsd-2-0
CVS tags: netbsd-2-base,
netbsd-2-1-RELEASE,
netbsd-2-1-RC6,
netbsd-2-1-RC5,
netbsd-2-1-RC4,
netbsd-2-1-RC3,
netbsd-2-1-RC2,
netbsd-2-1-RC1,
netbsd-2-1,
netbsd-2-0-RELEASE,
netbsd-2-0-RC5,
netbsd-2-0-RC4,
netbsd-2-0-RC3,
netbsd-2-0-RC2,
netbsd-2-0-RC1,
netbsd-2-0-3-RELEASE,
netbsd-2-0-2-RELEASE,
netbsd-2-0-1-RELEASE,
netbsd-2
Diff to: previous 1.54.2.1: preferred, colored; branchpoint 1.54: preferred, colored; next MAIN 1.55: preferred, colored
Changes since revision 1.54.2.1: +14 -4
lines
Pull up revision 1.57 (requested by hannken in ticket #706):
Concurrent lookups in the same directory may race for a
cache entry. Handle this, and upon detection free the
tentative entry and return. Fixes PR#26400.
Revision 1.54.2.1: download - view: text, markup, annotated - select for diffs
Sat Jul 10 14:23:21 2004 UTC (22 years, 4 months ago) by tron
Branches: netbsd-2-0
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +51 -28
lines
Pull up revision 1.55 (requested by tls in ticket #634):
make cache_purge more controlable.
namely, allow following operations.
- purge only an entry specified by a component name.
- purge only child entries.
- purge only parent entries.
no objections on tech-kern@.
Revision 1.61: download - view: text, markup, annotated - select for diffs
Sun Jun 27 08:50:44 2004 UTC (22 years, 4 months ago) by yamt
Branches: MAIN
CVS tags: yamt-vop-base3,
yamt-vop-base2,
yamt-vop-base,
yamt-vop,
yamt-readahead-pervnode,
yamt-readahead-perfile,
yamt-readahead-base3,
yamt-readahead-base2,
yamt-readahead-base,
yamt-readahead,
yamt-km-base4,
yamt-km-base3,
yamt-km-base2,
yamt-km-base,
yamt-km,
thorpej-vnode-attr-base,
thorpej-vnode-attr,
netbsd-3-base,
netbsd-3-1-RELEASE,
netbsd-3-1-RC4,
netbsd-3-1-RC3,
netbsd-3-1-RC2,
netbsd-3-1-RC1,
netbsd-3-1-1-RELEASE,
netbsd-3-1,
netbsd-3-0-RELEASE,
netbsd-3-0-RC6,
netbsd-3-0-RC5,
netbsd-3-0-RC4,
netbsd-3-0-RC3,
netbsd-3-0-RC2,
netbsd-3-0-RC1,
netbsd-3-0-3-RELEASE,
netbsd-3-0-2-RELEASE,
netbsd-3-0-1-RELEASE,
netbsd-3-0,
netbsd-3,
ktrace-lwp-base,
kent-audio2-base,
kent-audio2,
kent-audio1-beforemerge,
kent-audio1-base,
kent-audio1
Branch point for: yamt-lazymbuf
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +73 -2
lines
introduce a new function, cache_lookup_raw(), for filesystems which
want more flexible namecache handling.
it just looks up a dnlc entry and vget() the result vnode.
ie. no automatic entry removal, no automatic vnode locking.
discussed on tech-kern@.
Revision 1.60: download - view: text, markup, annotated - select for diffs
Sat Jun 19 18:49:47 2004 UTC (22 years, 5 months ago) by yamt
Branches: MAIN
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +10 -12
lines
cache_lookup: avoid to grab two vnode's v_interlock.
just hold a reference (usecount) to a vnode instead.
Revision 1.59: download - view: text, markup, annotated - select for diffs
Fri May 7 12:05:41 2004 UTC (22 years, 6 months ago) by yamt
Branches: MAIN
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +15 -11
lines
redo the previous (rev.1.58; overwrite a duplicate entry rather than leave it)
differently so that entries entered during we're doing pool_get() are
checked as well. pointed by Paul Kranenburg on source-changes@.
Revision 1.58: download - view: text, markup, annotated - select for diffs
Thu May 6 22:02:02 2004 UTC (22 years, 6 months ago) by yamt
Branches: MAIN
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +12 -13
lines
cache_enter: when we found a duplicate entry,
simply overwrite it rather than leaving a stale entry.
Revision 1.57: download - view: text, markup, annotated - select for diffs
Sun May 2 12:00:34 2004 UTC (22 years, 6 months ago) by pk
Branches: MAIN
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +14 -4
lines
cache_enter: concurrent lookups in the same directory may race for a
cache entry. Upon detection, free our tentative entry and return.
Revision 1.56: download - view: text, markup, annotated - select for diffs
Sun Apr 25 16:42:41 2004 UTC (22 years, 6 months ago) by simonb
Branches: MAIN
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +4 -5
lines
Initialise (most) pools from a link set instead of explicit calls
to pool_init. Untouched pools are ones that either in arch-specific
code, or aren't initialiased during initial system startup.
Convert struct session, ucred and lockf to pools.
Revision 1.55: download - view: text, markup, annotated - select for diffs
Mon Apr 5 10:20:52 2004 UTC (22 years, 7 months ago) by yamt
Branches: MAIN
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +51 -28
lines
make cache_purge more controlable.
namely, allow following operations.
- purge only an entry specified by a component name.
- purge only child entries.
- purge only parent entries.
no objections on tech-kern@.
Revision 1.35.8.1: download - view: text, markup, annotated - select for diffs
Mon Mar 15 05:25:14 2004 UTC (22 years, 8 months ago) by jmc
Branches: netbsd-1-6
Diff to: previous 1.35: preferred, colored; next MAIN 1.36: preferred, colored
Changes since revision 1.35: +4 -3
lines
Pullup rev hand patch (requested by enami in ticket #1617)
Fix LP64 bugs triggered by overflow.
Revision 1.54: download - view: text, markup, annotated - select for diffs
Mon Sep 1 12:13:55 2003 UTC (23 years, 2 months ago) by yamt
Branches: MAIN
CVS tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +3 -4
lines
remove an obsolete comment. pointed by enami@
Revision 1.53: download - view: text, markup, annotated - select for diffs
Fri Aug 8 20:19:56 2003 UTC (23 years, 3 months ago) by yamt
Branches: MAIN
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +21 -11
lines
- make this a bit MP friendly.
(although no actual changes under the kernel lock)
- remove a test that isn't meaningful anymore.
Revision 1.52: download - view: text, markup, annotated - select for diffs
Fri Aug 8 20:18:19 2003 UTC (23 years, 3 months ago) by yamt
Branches: MAIN
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +20 -12
lines
arrange namecache lru before vget (and releasing namecache_slock)
since our namecache entry can go away during we're sleeping on the vnode.
the bug pointed by enami tsugutomo.
tested by Matthias Scheler.
PR/22363.
Revision 1.51: download - view: text, markup, annotated - select for diffs
Thu Aug 7 16:32:01 2003 UTC (23 years, 3 months ago) by agc
Branches: MAIN
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +3 -7
lines
Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22364, verified by myself.
Revision 1.50: download - view: text, markup, annotated - select for diffs
Thu Jul 31 15:43:07 2003 UTC (23 years, 3 months ago) by yamt
Branches: MAIN
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +4 -4
lines
remove remaining v_id.
Revision 1.49: download - view: text, markup, annotated - select for diffs
Thu Jul 31 15:14:08 2003 UTC (23 years, 3 months ago) by yamt
Branches: MAIN
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +4 -3
lines
for NCHASH, obtain bits from the vnode pointer as well
to achieve a better hash distribution.
Revision 1.48: download - view: text, markup, annotated - select for diffs
Thu Jul 31 15:13:05 2003 UTC (23 years, 3 months ago) by yamt
Branches: MAIN
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +3 -3
lines
when casting a pointer to an integer,
cast it to uintptr_t so that 64-bit archs will be happy.
pointed by Juergen Hannken-Illjes.
Revision 1.47: download - view: text, markup, annotated - select for diffs
Wed Jul 30 12:10:57 2003 UTC (23 years, 3 months ago) by yamt
Branches: MAIN
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +9 -33
lines
eliminate v_id.
Revision 1.46: download - view: text, markup, annotated - select for diffs
Wed Jul 30 12:09:47 2003 UTC (23 years, 3 months ago) by yamt
Branches: MAIN
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +58 -24
lines
maintain the list of namecaches attached to the vnode.
it makes vnodes freeable.
Revision 1.45.2.1: download - view: text, markup, annotated - select for diffs
Wed Jul 2 15:26:45 2003 UTC (23 years, 4 months ago) by darrenr
Branches: ktrace-lwp
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +4 -4
lines
Apply the aborted ktrace-lwp changes to a specific branch. This is just for
others to review, I'm concerned that patch fuziness may have resulted in some
errant code being generated but I'll look at that later by comparing the diff
from the base to the branch with the file I attempt to apply to it. This will,
at the very least, put the changes in a better context for others to review
them and attempt to tinker with removing passing of 'struct lwp' through
the kernel.
Revision 1.45: download - view: text, markup, annotated - select for diffs
Sun Jun 29 22:31:32 2003 UTC (23 years, 4 months ago) by fvdl
Branches: MAIN
Branch point for: ktrace-lwp
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +2 -2
lines
Back out the lwp/ktrace changes. They contained a lot of colateral damage,
and need to be examined and discussed more.
Revision 1.44: download - view: text, markup, annotated - select for diffs
Sun Jun 29 18:43:28 2003 UTC (23 years, 4 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +4 -4
lines
Undo part of the ktrace/lwp changes. In particular:
* Remove the "lwp *" argument that was added to vget(). Turns out
that nothing actually used it!
* Remove the "lwp *" arguments that were added to VFS_ROOT(), VFS_VGET(),
and VFS_FHTOVP(); all they did was pass it to vget() (which, as noted
above, didn't use it).
* Remove all of the "lwp *" arguments to internal functions that were added
just to appease the above.
Revision 1.43: download - view: text, markup, annotated - select for diffs
Sat Jun 28 14:21:58 2003 UTC (23 years, 4 months ago) by darrenr
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +4 -4
lines
Pass lwp pointers throughtout the kernel, as required, so that the lwpid can
be inserted into ktrace records. The general change has been to replace
"struct proc *" with "struct lwp *" in various function prototypes, pass
the lwp through and use l_proc to get the process pointer when needed.
Bump the kernel rev up to 1.6V
Revision 1.42: download - view: text, markup, annotated - select for diffs
Wed May 21 09:36:06 2003 UTC (23 years, 6 months ago) by fvdl
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +3 -2
lines
Fix a missing namecache_slock unlock. From Stephan Uphoff.
Revision 1.41: download - view: text, markup, annotated - select for diffs
Sun Mar 2 13:26:22 2003 UTC (23 years, 8 months ago) by enami
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +3 -3
lines
... and no need to aqcuire lock while free'ing old hash which no one
refers it.
Revision 1.40: download - view: text, markup, annotated - select for diffs
Thu Feb 20 02:49:51 2003 UTC (23 years, 9 months ago) by jmc
Branches: MAIN
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +3 -3
lines
Move simple_lock after the hashinit's to avoid possible sleeping/malloc'ing
with a simplelock held.
Revision 1.39: download - view: text, markup, annotated - select for diffs
Fri Feb 14 21:39:46 2003 UTC (23 years, 9 months ago) by pk
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +41 -9
lines
Make cache insertion, removal and lookup MP-safe.
Revision 1.38: download - view: text, markup, annotated - select for diffs
Sat Feb 1 06:23:45 2003 UTC (23 years, 9 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +4 -2
lines
Add extensible malloc types, adapted from FreeBSD. This turns
malloc types into a structure, a pointer to which is passed around,
instead of an int constant. Allow the limit to be adjusted when the
malloc type is defined, or with a function call, as suggested by
Jonathan Stone.
Revision 1.29.2.4: download - view: text, markup, annotated - select for diffs
Thu Oct 10 18:43:21 2002 UTC (24 years, 1 month ago) by jdolecek
Branches: kqueue
Diff to: previous 1.29.2.3: preferred, colored; branchpoint 1.29: preferred, colored; next MAIN 1.30: preferred, colored
Changes since revision 1.29.2.3: +4 -4
lines
sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
Revision 1.28.2.7: download - view: text, markup, annotated - select for diffs
Tue Sep 17 21:22:28 2002 UTC (24 years, 2 months ago) by nathanw
Branches: nathanw_sa
CVS tags: nathanw_sa_end
Diff to: previous 1.28.2.6: preferred, colored; next MAIN 1.29: preferred, colored
Changes since revision 1.28.2.6: +2 -2
lines
Catch up to -current.
Revision 1.29.2.3: download - view: text, markup, annotated - select for diffs
Fri Sep 6 08:48:19 2002 UTC (24 years, 2 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.29.2.2: preferred, colored; branchpoint 1.29: preferred, colored
Changes since revision 1.29.2.2: +5 -5
lines
sync kqueue branch with HEAD
Revision 1.37: download - view: text, markup, annotated - select for diffs
Wed Sep 4 01:32:47 2002 UTC (24 years, 2 months ago) by matt
Branches: MAIN
CVS tags: nathanw_sa_before_merge,
nathanw_sa_base,
kqueue-beforemerge,
kqueue-base,
kqueue-aftermerge,
gmcgarry_ucred_base,
gmcgarry_ucred,
gmcgarry_ctxsw_base,
gmcgarry_ctxsw,
fvdl_fs64_base
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +4 -4
lines
Use the queue macros from <sys/queue.h> instead of referring to the queue
members directly. Use *_FOREACH whenever possible.
Revision 1.35.6.1: download - view: text, markup, annotated - select for diffs
Thu Aug 29 05:23:15 2002 UTC (24 years, 2 months ago) by gehenna
Branches: gehenna-devsw
Diff to: previous 1.35: preferred, colored; next MAIN 1.36: preferred, colored
Changes since revision 1.35: +5 -5
lines
catch up with -current.
Revision 1.28.2.6: download - view: text, markup, annotated - select for diffs
Tue Aug 27 23:47:37 2002 UTC (24 years, 2 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.28.2.5: preferred, colored
Changes since revision 1.28.2.5: +3 -3
lines
Catch up to -current.
Revision 1.36: download - view: text, markup, annotated - select for diffs
Mon Aug 26 01:21:58 2002 UTC (24 years, 2 months ago) by thorpej
Branches: MAIN
CVS tags: gehenna-devsw-base
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +5 -5
lines
Fix signed/unsigned comparison warnings from GCC 3.3.
Revision 1.28.2.5: download - view: text, markup, annotated - select for diffs
Mon Apr 1 07:48:02 2002 UTC (24 years, 7 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.28.2.4: preferred, colored
Changes since revision 1.28.2.4: +3 -4
lines
Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
Revision 1.29.2.2: download - view: text, markup, annotated - select for diffs
Sat Mar 16 16:01:53 2002 UTC (24 years, 8 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.29.2.1: preferred, colored; branchpoint 1.29: preferred, colored
Changes since revision 1.29.2.1: +3 -4
lines
Catch up with -current.
Revision 1.35: download - view: text, markup, annotated - select for diffs
Fri Mar 8 20:48:42 2002 UTC (24 years, 8 months ago) by thorpej
Branches: MAIN
CVS tags: newlock-base,
newlock,
netbsd-1-6-base,
netbsd-1-6-RELEASE,
netbsd-1-6-RC3,
netbsd-1-6-RC2,
netbsd-1-6-RC1,
netbsd-1-6-PATCH002-RELEASE,
netbsd-1-6-PATCH002-RC4,
netbsd-1-6-PATCH002-RC3,
netbsd-1-6-PATCH002-RC2,
netbsd-1-6-PATCH002-RC1,
netbsd-1-6-PATCH002,
netbsd-1-6-PATCH001-RELEASE,
netbsd-1-6-PATCH001-RC3,
netbsd-1-6-PATCH001-RC2,
netbsd-1-6-PATCH001-RC1,
netbsd-1-6-PATCH001,
eeh-devprop-base,
eeh-devprop
Branch point for: netbsd-1-6,
gehenna-devsw
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +3 -4
lines
Pool deals fairly well with physical memory shortage, but it doesn't
deal with shortages of the VM maps where the backing pages are mapped
(usually kmem_map). Try to deal with this:
* Group all information about the backend allocator for a pool in a
separate structure. The pool references this structure, rather than
the individual fields.
* Change the pool_init() API accordingly, and adjust all callers.
* Link all pools using the same backend allocator on a list.
* The backend allocator is responsible for waiting for physical memory
to become available, but will still fail if it cannot callocate KVA
space for the pages. If this happens, carefully drain all pools using
the same backend allocator, so that some KVA space can be freed.
* Change pool_reclaim() to indicate if it actually succeeded in freeing
some pages, and use that information to make draining easier and more
efficient.
* Get rid of PR_URGENT. There was only one use of it, and it could be
dealt with by the caller.
From art@openbsd.org.
Revision 1.25.4.2: download - view: text, markup, annotated - select for diffs
Sat Feb 9 20:44:13 2002 UTC (24 years, 9 months ago) by he
Branches: netbsd-1-5
CVS tags: netbsd-1-5-PATCH003
Diff to: previous 1.25.4.1: preferred, colored; branchpoint 1.25: preferred, colored; next MAIN 1.26: preferred, colored
Changes since revision 1.25.4.1: +9 -15
lines
Pull up revision 1.27 (requested by fvdl):
Improve computational complexity of cache_purgevfs(). Also fixes
a bug in which machines serving both as NFS clients and servers
could hang for 5-10 minutes under heavy load.
Revision 1.29.2.1: download - view: text, markup, annotated - select for diffs
Thu Jan 10 20:00:17 2002 UTC (24 years, 10 months ago) by thorpej
Branches: kqueue
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +115 -76
lines
Sync kqueue branch with -current.
Revision 1.28.2.4: download - view: text, markup, annotated - select for diffs
Tue Jan 8 00:32:42 2002 UTC (24 years, 10 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.28.2.3: preferred, colored
Changes since revision 1.28.2.3: +65 -75
lines
Catch up to -current.
Revision 1.34: download - view: text, markup, annotated - select for diffs
Mon Dec 10 01:49:26 2001 UTC (24 years, 11 months ago) by enami
Branches: MAIN
CVS tags: ifpoll-base
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +59 -67
lines
KNF.
Revision 1.33: download - view: text, markup, annotated - select for diffs
Sat Dec 8 04:09:56 2001 UTC (24 years, 11 months ago) by enami
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +8 -10
lines
Test ".." correctly when creating reverse cache entry.
Revision 1.28.2.3: download - view: text, markup, annotated - select for diffs
Wed Nov 14 19:16:48 2001 UTC (25 years ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.28.2.2: preferred, colored
Changes since revision 1.28.2.2: +6 -2
lines
Catch up to -current.
Revision 1.25.4.1: download - view: text, markup, annotated - select for diffs
Mon Nov 12 23:37:20 2001 UTC (25 years ago) by he
Branches: netbsd-1-5
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +3 -2
lines
Pull up revision 1.31 (requested by chs):
Safely handle cleanup of namecache entries in the event of multiple
threads ending up in the same section of code looking for the same
entry, possible because vget() can sleep. Fixes PR#14042.
Revision 1.30.2.1: download - view: text, markup, annotated - select for diffs
Mon Nov 12 21:19:00 2001 UTC (25 years ago) by thorpej
Branches: thorpej-mips-cache
Diff to: previous 1.30: preferred, colored; next MAIN 1.31: preferred, colored
Changes since revision 1.30: +6 -2
lines
Sync the thorpej-mips-cache branch with -current.
Revision 1.32: download - view: text, markup, annotated - select for diffs
Mon Nov 12 15:25:36 2001 UTC (25 years ago) by lukem
Branches: MAIN
CVS tags: thorpej-mips-cache-base
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +4 -1
lines
add RCSIDs
Revision 1.31: download - view: text, markup, annotated - select for diffs
Sat Oct 27 04:53:38 2001 UTC (25 years ago) by chs
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +3 -2
lines
in cache_lookup(), if we get a cache hit but then fail to vget() the found
vnode, we should not attempt to remove the namecache entry. this is because
vget() can sleep (eg. if VXLOCK is set because the vnode is being reclaimed),
and so multiple threads can end up in this context at the same time.
if this happens, each thread ends up removing the cache entry, but
the code to remove the entry assumes that the entry is still valid.
so we should just leave the (now stale) entry in the cache.
if another thread finds the entry again before it is reused,
that thread will notice that the entry is stale and remove it safely.
fixes PR 14042.
Revision 1.29.4.1: download - view: text, markup, annotated - select for diffs
Mon Oct 1 12:46:58 2001 UTC (25 years, 1 month ago) by fvdl
Branches: thorpej-devvp
Diff to: previous 1.29: preferred, colored; next MAIN 1.30: preferred, colored
Changes since revision 1.29: +50 -5
lines
Catch up with -current.
Revision 1.28.2.2: download - view: text, markup, annotated - select for diffs
Wed Sep 26 19:55:06 2001 UTC (25 years, 1 month ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.28.2.1: preferred, colored
Changes since revision 1.28.2.1: +50 -5
lines
Catch up to -current.
Again.
Revision 1.30: download - view: text, markup, annotated - select for diffs
Mon Sep 24 06:01:13 2001 UTC (25 years, 1 month ago) by chs
Branches: MAIN
CVS tags: thorpej-devvp-base3,
thorpej-devvp-base2
Branch point for: thorpej-mips-cache
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +50 -5
lines
resize the namecache hash table also when desiredvnodes changes.
Revision 1.21.2.4: download - view: text, markup, annotated - select for diffs
Sat Apr 21 17:46:31 2001 UTC (25 years, 7 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.21.2.3: preferred, colored; branchpoint 1.21: preferred, colored; next MAIN 1.22: preferred, colored
Changes since revision 1.21.2.3: +8 -1
lines
Sync with HEAD
Revision 1.28.2.1: download - view: text, markup, annotated - select for diffs
Mon Apr 9 01:58:00 2001 UTC (25 years, 7 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +8 -1
lines
Catch up with -current.
Revision 1.29: download - view: text, markup, annotated - select for diffs
Thu Mar 29 22:39:23 2001 UTC (25 years, 7 months ago) by fvdl
Branches: MAIN
CVS tags: thorpej_scsipi_nbase,
thorpej_scsipi_beforemerge,
thorpej_scsipi_base,
thorpej-devvp-base,
pre-chs-ubcperf,
post-chs-ubcperf
Branch point for: thorpej-devvp,
kqueue
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +8 -1
lines
Depending on the NAMECACHE_ENTER_REVERSE option, always enter reverse
mappings (vnode -> name) in the reverse mapping hash table. Without
this option, there is no change; only directories will be entered to
speed up getcwd. This is an option because it will cause getcwd
to hit longer hash chains, and at the moment its usefulness is
still limited.
Revision 1.21.2.3: download - view: text, markup, annotated - select for diffs
Fri Dec 8 09:14:01 2000 UTC (25 years, 11 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.21.2.2: preferred, colored; branchpoint 1.21: preferred, colored
Changes since revision 1.21.2.2: +35 -14
lines
Sync with HEAD.
Revision 1.28: download - view: text, markup, annotated - select for diffs
Fri Nov 24 07:25:51 2000 UTC (25 years, 11 months ago) by chs
Branches: MAIN
Branch point for: nathanw_sa
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +28 -1
lines
add ddb commands "show uvmexp" and "show ncache".
the former used to be "call uvm_dump", the latter is new.
Revision 1.27: download - view: text, markup, annotated - select for diffs
Fri Nov 24 05:02:23 2000 UTC (25 years, 11 months ago) by chs
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +9 -15
lines
change cache_purgevfs() from O(N^2) to O(N).
use queue.h macros where possible.
Revision 1.21.2.2: download - view: text, markup, annotated - select for diffs
Wed Nov 22 16:05:31 2000 UTC (25 years, 11 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.21.2.1: preferred, colored; branchpoint 1.21: preferred, colored
Changes since revision 1.21.2.1: +5 -3
lines
Sync with HEAD.
Revision 1.21.2.1: download - view: text, markup, annotated - select for diffs
Mon Nov 20 18:09:15 2000 UTC (26 years ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +12 -11
lines
Update thorpej_scsipi to -current as of a month ago
Revision 1.26: download - view: text, markup, annotated - select for diffs
Wed Nov 8 14:28:13 2000 UTC (26 years ago) by ad
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +5 -3
lines
Update for hashinit() change.
Revision 1.25: download - view: text, markup, annotated - select for diffs
Sun Apr 16 21:41:49 2000 UTC (26 years, 7 months ago) by chs
Branches: MAIN
CVS tags: netbsd-1-5-base,
netbsd-1-5-RELEASE,
netbsd-1-5-PATCH002,
netbsd-1-5-PATCH001,
netbsd-1-5-BETA2,
netbsd-1-5-BETA,
netbsd-1-5-ALPHA2,
minoura-xpg4dl-base,
minoura-xpg4dl
Branch point for: netbsd-1-5
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +2 -1
lines
change "nextvnodeid" from a global in namei.h to a static in
the one function that uses it.
Revision 1.24: download - view: text, markup, annotated - select for diffs
Sun Apr 16 21:39:57 2000 UTC (26 years, 7 months ago) by chs
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +2 -2
lines
limit the number of namecache entries to numvnodes rather than desiredvnodes.
getnewvnode() has been changed to virtually guarantee that we'll have more
vnodes than "desired", so previously there would always be more vnodes
than namecache entries. this fixes PR 9792.
Revision 1.23: download - view: text, markup, annotated - select for diffs
Thu Mar 30 09:27:14 2000 UTC (26 years, 7 months ago) by augustss
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +7 -7
lines
Get rid of register declarations.
Revision 1.22: download - view: text, markup, annotated - select for diffs
Thu Mar 23 14:32:41 2000 UTC (26 years, 8 months ago) by soren
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +4 -4
lines
Tiny comment update.
Revision 1.21: download - view: text, markup, annotated - select for diffs
Fri Sep 10 23:24:23 1999 UTC (27 years, 2 months ago) by mycroft
Branches: MAIN
CVS tags: wrstuden-devbsize-base,
wrstuden-devbsize-19991221,
wrstuden-devbsize,
fvdl-softdep-base,
fvdl-softdep,
comdex-fall-1999-base,
comdex-fall-1999,
chs-ubc2-newbase
Branch point for: thorpej_scsipi
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +3 -2
lines
Obey negative cache entries for intermediate directories during a create.
Revision 1.20: download - view: text, markup, annotated - select for diffs
Sun Sep 5 14:22:34 1999 UTC (27 years, 2 months ago) by jdolecek
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +86 -18
lines
Change cache_lookup() as per discussion on tech-kern & ICB:
If the entry is found in name cache, cache_lookup() does all the
necessary locking now, simplifying the interface and making the
code easier to follow and maintain.
The code now also removes the entry from cache when it's either invalid
(vget() fails) or the vnode has been recycled while waiting for the lock.
In that case, unlock/relock of the directory vnode has been eliminated too.
Both changes could lead to sligh performace improvement in same cases.
Furthermore, obscure bug has been found and eliminated for ISDOTDOT in the
lockparent && ISLASTCN case: if the vget() succeded and the re-lock
of the directory vnode not, we returned the error with the '..' vnode still
locked.
For simplicity, cache_lookup() now returns 0 if the positive entry was found
in cache, -1 if not found and ENOENT or error returned by the locking
functions in any other case.
Many thanks to Bill Studenmund and especially Charles Hannum
for invaluable advices and code to get this right.
Tested by: jdolecek
Rewieved by: wrstuden, mycroft
Revision 1.19.4.1: download - view: text, markup, annotated - select for diffs
Mon Jun 7 04:25:31 1999 UTC (27 years, 5 months ago) by chs
Branches: chs-ubc2
Diff to: previous 1.19: preferred, colored; next MAIN 1.20: preferred, colored
Changes since revision 1.19: +47 -1
lines
merge everything from chs-ubc branch.
Revision 1.19: download - view: text, markup, annotated - select for diffs
Mon Mar 22 17:01:55 1999 UTC (27 years, 8 months ago) by sommerfe
Branches: MAIN
CVS tags: netbsd-1-4-base,
netbsd-1-4-RELEASE,
netbsd-1-4-PATCH003,
netbsd-1-4-PATCH002,
netbsd-1-4-PATCH001,
netbsd-1-4,
kame_14_19990705,
kame_14_19990628,
kame_141_19991130,
kame,
chs-ubc2-base
Branch point for: chs-ubc2
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +108 -1
lines
Change namei cache to record vnode->(parent,name) entries (for directories).
Add kernel implementation of getcwd() which uses this cache, falling
back to reading the filesystem on a cache miss.
Along for the ride: add new VOP_FSYNC flag FSYNC_RECLAIM indicating
that a reclaim is being done, so only a "shallow" fsync is needed.
Revision 1.18.2.1: download - view: text, markup, annotated - select for diffs
Mon Nov 9 06:06:32 1998 UTC (28 years ago) by chs
Branches: chs-ubc
Diff to: previous 1.18: preferred, colored; next MAIN 1.19: preferred, colored
Changes since revision 1.18: +47 -1
lines
initial snapshot. lots left to do.
Revision 1.18: download - view: text, markup, annotated - select for diffs
Tue Sep 1 04:33:56 1998 UTC (28 years, 2 months ago) by thorpej
Branches: MAIN
CVS tags: kenh-if-detach-base,
kenh-if-detach,
chs-ubc-base
Branch point for: chs-ubc
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +8 -3
lines
Use the pool allocator and "nointr" pool page allocator for name cache entries.
The only benefit this provides is that we don't use kmem_map to map the memory
used for name cache entries (though, this is a 13 virtual page savings on my
PPro) since vnodes are never freed (they have their own freelist).
Revision 1.15.2.1: download - view: text, markup, annotated - select for diffs
Sat Aug 8 03:06:59 1998 UTC (28 years, 3 months ago) by eeh
Branches: eeh-paddr_t
Diff to: previous 1.15: preferred, colored; next MAIN 1.16: preferred, colored
Changes since revision 1.15: +3 -3
lines
Revert cdevsw mmap routines to return int.
Revision 1.17: download - view: text, markup, annotated - select for diffs
Tue Aug 4 04:03:18 1998 UTC (28 years, 3 months ago) by perry
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +4 -4
lines
Abolition of bcopy, ovbcopy, bcmp, and bzero, phase one.
bcopy(x, y, z) -> memcpy(y, x, z)
ovbcopy(x, y, z) -> memmove(y, x, z)
bcmp(x, y, z) -> memcmp(x, y, z)
bzero(x, y) -> memset(x, 0, y)
Revision 1.16: download - view: text, markup, annotated - select for diffs
Fri Jul 31 22:50:53 1998 UTC (28 years, 3 months ago) by perry
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +3 -3
lines
fix sizeofs so they comply with the KNF style guide. yes, it is pedantic.
Revision 1.15: download - view: text, markup, annotated - select for diffs
Sun Mar 1 02:22:35 1998 UTC (28 years, 8 months ago) by fvdl
Branches: MAIN
CVS tags: eeh-paddr_t-base
Branch point for: eeh-paddr_t
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +3 -2
lines
Merge with Lite2 + local changes
Revision 1.1.1.3 (vendor branch): download - view: text, markup, annotated - select for diffs
Sun Mar 1 02:13:04 1998 UTC (28 years, 8 months ago) by fvdl
Branches: WFJ-920714,
CSRG
CVS tags: lite-2
Diff to: previous 1.1.1.2: preferred, colored
Changes since revision 1.1.1.2: +153 -161
lines
Import 4.4BSD-Lite2
Revision 1.1.1.2 (vendor branch): download - view: text, markup, annotated - select for diffs
Sun Mar 1 02:09:53 1998 UTC (28 years, 8 months ago) by fvdl
Branches: WFJ-920714,
CSRG
CVS tags: lite-1,
date-03-may-96
Diff to: previous 1.1.1.1: preferred, colored
Changes since revision 1.1.1.1: +99 -93
lines
Import 4.4BSD-Lite for reference
Revision 1.14: download - view: text, markup, annotated - select for diffs
Sat Feb 7 02:44:49 1998 UTC (28 years, 9 months ago) by chs
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +2 -2
lines
add flags arg to hashinit(), to pass to malloc().
Revision 1.13: download - view: text, markup, annotated - select for diffs
Sun Feb 4 02:18:09 1996 UTC (30 years, 9 months ago) by christos
Branches: MAIN
CVS tags: thorpej-signal-base,
thorpej-signal,
thorpej-setroot,
netbsd-1-3-base,
netbsd-1-3-RELEASE,
netbsd-1-3-PATCH003-CANDIDATE2,
netbsd-1-3-PATCH003-CANDIDATE1,
netbsd-1-3-PATCH003-CANDIDATE0,
netbsd-1-3-PATCH003,
netbsd-1-3-PATCH002,
netbsd-1-3-PATCH001,
netbsd-1-3-BETA,
netbsd-1-3,
netbsd-1-2-base,
netbsd-1-2-RELEASE,
netbsd-1-2-PATCH001,
netbsd-1-2-BETA,
netbsd-1-2,
mrg-vm-swap,
marc-pcmcia-bp,
marc-pcmcia-base,
marc-pcmcia,
is-newarp-before-merge,
is-newarp-base,
is-newarp,
bouyer-scsipi
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +6 -2
lines
First pass at prototyping
Revision 1.12: download - view: text, markup, annotated - select for diffs
Fri Sep 8 14:15:07 1995 UTC (31 years, 2 months ago) by ws
Branches: MAIN
CVS tags: netbsd-1-1-base,
netbsd-1-1-RELEASE,
netbsd-1-1-PATCH001,
netbsd-1-1
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +3 -3
lines
Distribute cache entries more evenly
Revision 1.11: download - view: text, markup, annotated - select for diffs
Tue May 30 09:02:02 1995 UTC (31 years, 5 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +12 -3
lines
Preserve the ISWHITEOUT flag between cache_enter() and cache_lookup().
Revision 1.10: download - view: text, markup, annotated - select for diffs
Tue Dec 13 09:14:34 1994 UTC (31 years, 11 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +2 -2
lines
Sync with CSRG.
Revision 1.9: download - view: text, markup, annotated - select for diffs
Tue Aug 30 03:06:11 1994 UTC (32 years, 2 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +39 -98
lines
Convert process, file, and namei lists and hash tables to use queue.h.
Revision 1.8: download - view: text, markup, annotated - select for diffs
Tue Jul 5 19:09:32 1994 UTC (32 years, 4 months ago) by cgd
Branches: MAIN
CVS tags: netbsd-1-0-base,
netbsd-1-0-RELEASE,
netbsd-1-0-PATCH1,
netbsd-1-0-PATCH06,
netbsd-1-0-PATCH05,
netbsd-1-0-PATCH04,
netbsd-1-0-PATCH03,
netbsd-1-0-PATCH02,
netbsd-1-0-PATCH0,
netbsd-1-0
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +4 -2
lines
fix for kern/322, pointed out by osymh@gemini.oscs.montana.edu. Neither
suggested fix was correct: the suggested change to cache_lookup would cause
the counters to be incremented when doingcache was zero, and the suggested
change to cache_enter was prone to a race condition (e.g. if doingcache
became 1 between the cache_lookup and cache_enter).
Revision 1.7: download - view: text, markup, annotated - select for diffs
Sat Jul 2 20:26:19 1994 UTC (32 years, 4 months ago) by chopps
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +2 -2
lines
we like cache.
Revision 1.6: download - view: text, markup, annotated - select for diffs
Wed Jun 29 06:33:47 1994 UTC (32 years, 4 months ago) by cgd
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +4 -3
lines
New RCS ID's, take two. they're more aesthecially pleasant, and use 'NetBSD'
Revision 1.5: download - view: text, markup, annotated - select for diffs
Wed Jun 8 11:28:50 1994 UTC (32 years, 5 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +96 -91
lines
Update to 4.4-Lite fs code.
Revision 1.4: download - view: text, markup, annotated - select for diffs
Sat Dec 18 04:22:39 1993 UTC (32 years, 11 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +9 -9
lines
Canonicalize all #includes.
Revision 1.3.2.1: download - view: text, markup, annotated - select for diffs
Sun Nov 14 21:24:14 1993 UTC (33 years ago) by mycroft
Branches: magnum
Diff to: previous 1.3: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3: +9 -9
lines
Canonicalize all #includes.
Revision 1.3: download - view: text, markup, annotated - select for diffs
Tue Sep 7 15:41:10 1993 UTC (33 years, 2 months ago) by ws
Branches: MAIN
CVS tags: magnum-base
Branch point for: magnum
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +6 -5
lines
Changes to VFS readdir semantics
NFS changes for better cookie support
ISOFS changes for better Rockridge support and support for generation numbers
Revision 1.2: download - view: text, markup, annotated - select for diffs
Thu May 20 02:55:33 1993 UTC (33 years, 6 months ago) by cgd
Branches: MAIN
CVS tags: netbsd-0-9-patch-001,
netbsd-0-9-base,
netbsd-0-9-RELEASE,
netbsd-0-9-BETA,
netbsd-0-9-ALPHA2,
netbsd-0-9-ALPHA,
netbsd-0-9
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +2 -1
lines
add $Id$ strings, and clean up file headers where necessary
Revision 1.1.1.1 (vendor branch): download - view: text, markup, annotated - select for diffs
Sun Mar 21 09:45:37 1993 UTC (33 years, 8 months ago) by cgd
Branches: WFJ-920714,
CSRG
CVS tags: patchkit-0-2-2,
netbsd-alpha-1,
netbsd-0-8,
WFJ-386bsd-01
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +0 -0
lines
initial import of 386bsd-0.1 sources
Revision 1.1: download - view: text, markup, annotated - select for diffs
Sun Mar 21 09:45:37 1993 UTC (33 years, 8 months ago) by cgd
Branches: MAIN
Initial revision
CVSweb <webmaster@jp.NetBSD.org>