HomeFreeBSD

In v_addpollinfo(), we allocate storage to back vp->v_pollinfo. However,

Description

In v_addpollinfo(), we allocate storage to back vp->v_pollinfo. However,
we may sleep when doing so; check that we didn't race with another thread
allocating storage for the vnode after allocation is made to a local
pointer, and only update the vnode pointer if it's still NULL. Otherwise,
accept that another thread got there first, and release the local storage.

Discussed with: jmg

Details

Provenance
rwatsonAuthored on Aug 11 2004, 1:27 AM
Parents
rG0209f41086b4: Update links to the bluez-firmware package
Branches
Unknown
Tags
Unknown

Event Timeline