HomeFreeBSD

vn_open_vnode(): fix locking around VOP_CLOSE() on advisory lock error

Description

vn_open_vnode(): fix locking around VOP_CLOSE() on advisory lock error

In the case of a FIFO or if trying to open a file for writing, an
exclusive lock is necessary.

Reviewed by: kib
MFC after: 1 week

Details

Provenance
olceAuthored on Apr 24 2023, 9:36 AM
kibCommitted on Apr 24 2023, 10:37 PM
Parents
rGfaec42a3ef60: sys/dirent.h: comment update, 'd_off' is offset of next entry
Branches
Unknown
Tags
Unknown