HomeFreeBSD

vfs: fix vhold race in mnt_vnode_next_lazy_relock

Description

vfs: fix vhold race in mnt_vnode_next_lazy_relock

vdrop can set the hold count to 0 and wait for the ->mnt_listmtx held by
mnt_vnode_next_lazy_relock caller. The routine incorrectly asserted the
count has to be > 0.

Reported by: pho
Tested by: pho

Details

Provenance
mjgAuthored on
Parents
rS357769: Add missing EPOCH(9) wrapper in ipfw(8).
Branches
Unknown
Tags
Unknown