Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Sep 2010 23:54:03 +0000 (UTC)
From:      Marius Strobl <marius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r213147 - head/sys/dev/mpt
Message-ID:  <201009242354.o8ONs34F043351@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marius
Date: Fri Sep 24 23:54:03 2010
New Revision: 213147
URL: http://svn.freebsd.org/changeset/base/213147

Log:
  Take mpt_req_on_{free,pending}_list() out from under INVARIANTS as these
  are generally useful and not just for debugging.

Modified:
  head/sys/dev/mpt/mpt.h

Modified: head/sys/dev/mpt/mpt.h
==============================================================================
--- head/sys/dev/mpt/mpt.h	Fri Sep 24 23:51:45 2010	(r213146)
+++ head/sys/dev/mpt/mpt.h	Fri Sep 24 23:54:03 2010	(r213147)
@@ -1157,19 +1157,13 @@ mpt_tag_2_req(struct mpt_softc *mpt, uin
 	KASSERT(mpt->tgt_cmd_ptrs[rtg], ("no cmd backpointer"));
 	return (mpt->tgt_cmd_ptrs[rtg]);
 }
-
+#endif
 
 static __inline int
 mpt_req_on_free_list(struct mpt_softc *, request_t *);
 static __inline int
 mpt_req_on_pending_list(struct mpt_softc *, request_t *);
 
-static __inline void
-mpt_req_spcl(struct mpt_softc *, request_t *, const char *, int);
-static __inline void
-mpt_req_not_spcl(struct mpt_softc *, request_t *, const char *, int);
-
-
 /*
  * Is request on freelist?
  */
@@ -1202,6 +1196,12 @@ mpt_req_on_pending_list(struct mpt_softc
 	return (0);
 }
 
+#ifdef	INVARIANTS
+static __inline void
+mpt_req_spcl(struct mpt_softc *, request_t *, const char *, int);
+static __inline void
+mpt_req_not_spcl(struct mpt_softc *, request_t *, const char *, int);
+
 /*
  * Make sure that req *is* part of one of the special lists
  */



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