Add a 'suspended' flag to softc so that we can avoid races on detach.

This commit is contained in:
bms 2004-07-09 00:12:41 +00:00
parent e2d65a49fd
commit 8336c29bfb
2 changed files with 2 additions and 0 deletions

View File

@ -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

View File

@ -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