myx(4): add initialization of sc_sff_lock rwlock
Ok? Index: sys/dev/pci/if_myx.c === RCS file: /cvs/src/sys/dev/pci/if_myx.c,v retrieving revision 1.111 diff -u -p -u -p -r1.111 if_myx.c --- sys/dev/pci/if_myx.c17 Jul 2020 03:37:36 - 1.111 +++ sys/dev/pci/if_myx.c
stdio: fclose(3), fopen(3): intended locking hierarchy?
Hey, In stdio, which lock are you supposed to take first? The global sfp_mutex or the per-FILE lock? In __sfp() we hold sfp_mutex while iterating through the pool (unsure what else to call it) of FILEs. No two threads can modify the pool at the same time: 111 _MUTEX_LOCK(&__sfp_mut