Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Aug 2015 01:41:56 +0000 (UTC)
From:      Navdeep Parhar <np@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r287149 - stable/10/sys/dev/cxgbe
Message-ID:  <201508260141.t7Q1fuN8074173@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: np
Date: Wed Aug 26 01:41:55 2015
New Revision: 287149
URL: https://svnweb.freebsd.org/changeset/base/287149

Log:
  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).

Modified:
  stable/10/sys/dev/cxgbe/adapter.h
  stable/10/sys/dev/cxgbe/t4_main.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/dev/cxgbe/adapter.h
==============================================================================
--- stable/10/sys/dev/cxgbe/adapter.h	Tue Aug 25 21:55:15 2015	(r287148)
+++ stable/10/sys/dev/cxgbe/adapter.h	Wed Aug 26 01:41:55 2015	(r287149)
@@ -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;

Modified: stable/10/sys/dev/cxgbe/t4_main.c
==============================================================================
--- stable/10/sys/dev/cxgbe/t4_main.c	Tue Aug 25 21:55:15 2015	(r287148)
+++ stable/10/sys/dev/cxgbe/t4_main.c	Wed Aug 26 01:41:55 2015	(r287149)
@@ -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
 #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?201508260141.t7Q1fuN8074173>