HomeFreeBSD

Don't drop the idr lock before verifying that the newly-inserted element

Description

Don't drop the idr lock before verifying that the newly-inserted element
is present in the tree. Otherwise there exists a window during which the
element could be removed by another thread, triggering an incorrect
assertion failure.

Reviewed by: jeff
MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

Details

Provenance
markjAuthored on
Parents
rS282330: Improve compatibility groff's soelim
Branches
Unknown
Tags
Unknown