Page MenuHomeFreeBSD

p9fs: fix panics in p9fs_vget_common
ClosedPublic

Authored by njain15_protonmail.com on Tue, Aug 4, 1:21 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Aug 22, 2:35 PM
Unknown Object (File)
Wed, Aug 19, 7:59 PM
Unknown Object (File)
Wed, Aug 19, 9:09 AM
Unknown Object (File)
Wed, Aug 19, 2:54 AM
Unknown Object (File)
Sun, Aug 16, 8:54 PM
Unknown Object (File)
Sun, Aug 16, 1:38 PM
Unknown Object (File)
Sat, Aug 15, 3:57 PM
Unknown Object (File)
Fri, Aug 14, 1:07 AM
Subscribers

Details

Summary

This is similar to D55755, with some additional fixes / refactoring.

vfs_hash_insert() already calls vgone() and vput() on the node, so it will call p9fs_reclaim(). Same with ismntque. As for p9fs_reload_stats_dotl() case, we need to call vgone() before vput(), since the current state of the vnode will be uninitialized when we get there.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable