MFC r286926:
cxgbe(4): Save the flags for the last adapter-wide synchronized operation that was initiated successfully. (The caller and thread are already recorded).
This commit is contained in:
parent
67ce47d47b
commit
e3e10fb92a
@ -801,6 +801,7 @@ struct adapter {
|
||||
#ifdef INVARIANTS
|
||||
const char *last_op;
|
||||
const void *last_op_thr;
|
||||
int last_op_flags;
|
||||
#endif
|
||||
|
||||
int sc_do_rxcopy;
|
||||
|
@ -1149,6 +1149,7 @@ cxgbe_detach(device_t dev)
|
||||
#ifdef INVARIANTS
|
||||
sc->last_op = "t4detach";
|
||||
sc->last_op_thr = curthread;
|
||||
sc->last_op_flags = 0;
|
||||
#endif
|
||||
ADAPTER_UNLOCK(sc);
|
||||
|
||||
@ -3109,6 +3110,7 @@ begin_synchronized_op(struct adapter *sc, struct port_info *pi, int flags,
|
||||
#ifdef INVARIANTS
|
||||
sc->last_op = wmesg;
|
||||
sc->last_op_thr = curthread;
|
||||
sc->last_op_flags = flags;
|
||||
#endif
|
||||
|
||||
done:
|
||||
|
Loading…
x
Reference in New Issue
Block a user