diff options
author | rwatson <rwatson@FreeBSD.org> | 2004-08-11 01:27:53 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2004-08-11 01:27:53 +0000 |
commit | 371cf09cf75eb31267e0d4f07e35e6fba755d416 (patch) | |
tree | cce42dfa808ef7915aedf3062ffebef6e141683f /lib/libexpat | |
parent | 5846466bff4d5d09196a4bd46915d2c3e8d83032 (diff) | |
download | FreeBSD-src-371cf09cf75eb31267e0d4f07e35e6fba755d416.zip FreeBSD-src-371cf09cf75eb31267e0d4f07e35e6fba755d416.tar.gz |
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
Diffstat (limited to 'lib/libexpat')
0 files changed, 0 insertions, 0 deletions