device: serialize access to IpcSetOperation
Interleaves IpcSetOperations would spell trouble. Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
This commit is contained in:
parent
a9ce4b762c
commit
cecb41515d
2 changed files with 4 additions and 0 deletions
|
|
@ -23,6 +23,7 @@ type Device struct {
|
|||
isUp AtomicBool // device is (going) up
|
||||
isClosed AtomicBool // device is closed? (acting as guard)
|
||||
log *Logger
|
||||
ipcSetMu sync.Mutex // serializes UAPI set operations
|
||||
|
||||
// synchronized resources (locks acquired in order)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue