Module Name: src Committed By: ad Date: Thu Apr 23 22:58:36 UTC 2020
Modified Files: src/sys/kern: vfs_cache.c Log Message: 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. To generate a diff of this commit: cvs rdiff -u -r1.140 -r1.141 src/sys/kern/vfs_cache.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.