freebsd-dev/sys/gnu/fs
Alexander Kabaev cb9ddc80ae Take care not to call vput if thread used in corresponding vget
wasn't curthread, i.e. when we receive a thread pointer to use
as a function argument. Use VOP_UNLOCK/vrele in these cases.

The only case there td != curthread known at the moment is
boot() calling sync with thread0 pointer.

This fixes the panic on shutdown people have reported.
2003-11-02 04:52:53 +00:00
..
ext2fs Take care not to call vput if thread used in corresponding vget 2003-11-02 04:52:53 +00:00