HomeFreeBSD

Resolve the devfs deadlock caused by LOR between devfs_mount->dm_lock and
rS162398Unpublished

Unpublished Commit ยท Learn More

No further details are available.

Description

Resolve the devfs deadlock caused by LOR between devfs_mount->dm_lock and
vnode lock in devfs_allocv. Do this by temporary dropping dm_lock around
vnode locking.

For safe operation, add hold counters for both devfs_mount and devfs_dirent,
and DE_DOOMED flag for devfs_dirent. The facilities allow to continue after
dropping of the dm_lock, by making sure that referenced memory does not
disappear.

Reviewed by: tegge
Tested by: kris
Approved by: kan (mentor)
PR: kern/102335

Details

Provenance
kibAuthored on
Parents
rS162397: hw.syscons.kbd_kbdkey is actually named hw.syscons.kbd_debug.
Branches
Unknown
Tags
Unknown

Event Timeline