]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
- Don't allow calls to vn_lock() with no lock type requested. Callers
authorjeff <jeff@FreeBSD.org>
Sat, 29 Mar 2008 23:36:26 +0000 (23:36 +0000)
committerjeff <jeff@FreeBSD.org>
Sat, 29 Mar 2008 23:36:26 +0000 (23:36 +0000)
commitef1b5135a944eaca4ee229eb22b7fda38043f8c5
tree39f9342e6083b171a7cdadf4becb9b31e2d7cf27
parent26629f5add30a8592d5c987266c9944bce79c21e
 - Don't allow calls to vn_lock() with no lock type requested.  Callers
   which simply want a reference should use vref().  Callers which want
   to check validity need to hold a lock while performing any action
   based on that validity.  vn_lock() would always release the interlock
   before returning making any action synchronous with the validity check
   impossible.
sys/kern/vfs_vnops.c