mirror of
git://git.9front.org/plan9front/plan9front
synced 2025-01-12 11:10:06 +00:00
[Mirror] Some kind of OS: git://git.9front.org/plan9front/plan9front
0336b2fad3
We do not need a QLock per Netfile, just serializing open/close/write with Netif.QLock should be sufficient. This avoids the lock ordering violation in netifclose(). Netfile's are accessed without locking by ethermux(), so ensure coherence before setting the pointer. This also ensures: Netif.f[x] == nil || Netif.f[x]->in != nil. Netaddr's for multicast are accessed without locking by activemulti(), so do coherence() before linking them into the hashtable. Remove "Lock netlock" for netown() permission check. This is now all serialized thru Netif.QLock. Put waserror() guards for all the Netif driver callbacks and wifi qwrite(). |
||
---|---|---|
386 | ||
68000 | ||
68020 | ||
acme | ||
adm/timezone | ||
amd64 | ||
arm | ||
arm64 | ||
lib | ||
mips | ||
power | ||
power64 | ||
rc | ||
sparc | ||
sparc64 | ||
spim | ||
sys |