HomeFreeBSD

filedesc: microoptimize fget_unlocked by retrying obtaining reference count

Description

filedesc: microoptimize fget_unlocked by retrying obtaining reference count
without restarting whole lookup

Restart is only needed when fp was closed by current process, which is a much
rarer event than ref/deref by some other thread.

Details

Provenance
mjgAuthored on
Parents
rS273842: filedesc: get rid of atomic_load_acq_int from fget_unlocked
Branches
Unknown
Tags
Unknown

Event Timeline