svn commit: r286926 - head/sys/dev/cxgbe

Navdeep Parhar np at FreeBSD.org
Wed Aug 19 15:40:04 UTC 2015


Author: np
Date: Wed Aug 19 15:40:03 2015
New Revision: 286926
URL: https://svnweb.freebsd.org/changeset/base/286926

Log:
  cxgbe(4):  Save the flags for the last adapter-wide synchronized
  operation that was initiated successfully.  (The caller and thread are
  already recorded).
  
  MFC after:	1 week

Modified:
  head/sys/dev/cxgbe/adapter.h
  head/sys/dev/cxgbe/t4_main.c

Modified: head/sys/dev/cxgbe/adapter.h
==============================================================================
--- head/sys/dev/cxgbe/adapter.h	Wed Aug 19 15:30:55 2015	(r286925)
+++ head/sys/dev/cxgbe/adapter.h	Wed Aug 19 15:40:03 2015	(r286926)
@@ -808,6 +808,7 @@ struct adapter {
 #ifdef INVARIANTS
 	const char *last_op;
 	const void *last_op_thr;
+	int last_op_flags;
 #endif
 
 	int sc_do_rxcopy;

Modified: head/sys/dev/cxgbe/t4_main.c
==============================================================================
--- head/sys/dev/cxgbe/t4_main.c	Wed Aug 19 15:30:55 2015	(r286925)
+++ head/sys/dev/cxgbe/t4_main.c	Wed Aug 19 15:40:03 2015	(r286926)
@@ -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);
 
@@ -3165,6 +3166,7 @@ begin_synchronized_op(struct adapter *sc
 #ifdef INVARIANTS
 	sc->last_op = wmesg;
 	sc->last_op_thr = curthread;
+	sc->last_op_flags = flags;
 #endif
 
 done:


More information about the svn-src-head mailing list