]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
rtwn: narrow the epoch area
authorBjoern A. Zeeb <bz@FreeBSD.org>
Tue, 29 Sep 2020 20:46:25 +0000 (20:46 +0000)
committerBjoern A. Zeeb <bz@FreeBSD.org>
Tue, 29 Sep 2020 20:46:25 +0000 (20:46 +0000)
commit3917c9ba653d804dc4f60b969ef5eee32525e5a6
tree8d3e9aac420adad825c0b59d07d79bc1529021d4
parent6186bfbd1880d02ab879abacbff65b17a38f8578
rtwn: narrow the epoch area

Rather than placing the epoch around the entire receive loop which
might call into rtwn_rx_frame() and USB and sleep, split the loop
into two[1] and leave us with one unlock/lock cycle as well.

PR: 249925
Reported by: thj, (rkoberman gmail.com)
Tested by: thj
Suggested by: adrian [1]
Reviewed by: adrian
MFC after: 3 days
Sponsored by: The FreeBSD Foundation (initially, paniced my iwl lab host)
Differential Revision: https://reviews.freebsd.org/D26554
sys/dev/rtwn/usb/rtwn_usb_rx.c