Add a 'suspended' flag to softc so that we can avoid races on detach.
This commit is contained in:
parent
e2d65a49fd
commit
8336c29bfb
@ -468,6 +468,7 @@ struct vr_softc {
|
||||
struct vr_chain_data vr_cdata;
|
||||
struct callout_handle vr_stat_ch;
|
||||
struct mtx vr_mtx;
|
||||
int suspended; /* if 1, sleeping/detaching */
|
||||
#ifdef DEVICE_POLLING
|
||||
int rxcycles;
|
||||
#endif
|
||||
|
@ -468,6 +468,7 @@ struct vr_softc {
|
||||
struct vr_chain_data vr_cdata;
|
||||
struct callout_handle vr_stat_ch;
|
||||
struct mtx vr_mtx;
|
||||
int suspended; /* if 1, sleeping/detaching */
|
||||
#ifdef DEVICE_POLLING
|
||||
int rxcycles;
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user