HomeFreeBSD

twsi: protect interaction between twsi_transfer and twsi_intr

Description

twsi: protect interaction between twsi_transfer and twsi_intr

All accesses to softc are now done under a mutex to prevent data races
between the open context and the interrupt handler.
Additionally, the wait time in twsi_transfer is bounded now.
Previously we could get stuck there forever if an interrupt got lost.

(cherry picked from commit 69cfa60ddd4df814b507699f9bb7253ece054f40)

Details

Provenance
avgAuthored on Nov 26 2021, 7:25 AM
Parents
rG42cb69e147e3: Hyper-V: hn: Enter network epoch when required
Branches
Unknown
Tags
Unknown