diff options
author | 2010-04-30 20:50:53 +0000 | |
---|---|---|
committer | 2010-04-30 20:50:53 +0000 | |
commit | 69ba976b1c944845eea8d56df00167f3285f565e (patch) | |
tree | 2750af6ce50d0a4caea406533997a6cae03ead1a /share/man/man7 | |
parent | Add __unused and __used macros that expand to appropriate __attribute__ (diff) | |
download | wireguard-openbsd-69ba976b1c944845eea8d56df00167f3285f565e.tar.xz wireguard-openbsd-69ba976b1c944845eea8d56df00167f3285f565e.zip |
Prevent a possible case of lock recursion in swapoff.
If when we have successfully swapped an aobj back in, then we release our
reference count, and that reference is the last reference, we will free the
the aobj and recursively lock the list lock.
Fix this by keeping track of the last object we had a reference on, and
releasing the refcount the next time we unlock the list lock.
Put a couple of comments in explaining lock ordering in this file.
noticed by, discussed with and ok guenther@.
Diffstat (limited to 'share/man/man7')
0 files changed, 0 insertions, 0 deletions