Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Aug 2015 15:40:03 +0000 (UTC)
From:      Navdeep Parhar <np@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r286926 - head/sys/dev/cxgbe
Message-ID:  <201508191540.t7JFe388005026@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201508191540.t7JFe388005026>