Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: src/sys/net
Module Name: src
Committed By: riastradh
Date: Thu Aug 20 21:35:44 UTC 2020
Modified Files:
src/sys/net: if_wg.c
Log Message:
Avoid callout_halt under lock.
- We could pass the lock in, except we hold another lock too.
- We could halt before taking the other lock, but it's not safe to
sleep after getting the session pointer before taking its lock.
- We could halt before getting the session pointer, but then there's
no point in doing it under the lock.
So just halt a little earlier instead.
To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/sys/net/if_wg.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Home |
Main Index |
Thread Index |
Old Index