svn commit: r213147 - head/sys/dev/mpt
Marius Strobl
marius at FreeBSD.org
Fri Sep 24 23:54:03 UTC 2010
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
*/
More information about the svn-src-head
mailing list