diff options
author | marius <marius@FreeBSD.org> | 2010-09-24 23:54:03 +0000 |
---|---|---|
committer | marius <marius@FreeBSD.org> | 2010-09-24 23:54:03 +0000 |
commit | adf20f5d89c25bc46f4028a5305d8b93695e82ff (patch) | |
tree | ad1ce0cc050dfaa905660d179f01af53940f312b /sys/dev/mpt | |
parent | cff358c3df8330d3761087f73e9192c8b8f7fe6a (diff) | |
download | FreeBSD-src-adf20f5d89c25bc46f4028a5305d8b93695e82ff.zip FreeBSD-src-adf20f5d89c25bc46f4028a5305d8b93695e82ff.tar.gz |
Take mpt_req_on_{free,pending}_list() out from under INVARIANTS as these
are generally useful and not just for debugging.
Diffstat (limited to 'sys/dev/mpt')
-rw-r--r-- | sys/dev/mpt/mpt.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/dev/mpt/mpt.h b/sys/dev/mpt/mpt.h index 9026142..f095bbf 100644 --- a/sys/dev/mpt/mpt.h +++ b/sys/dev/mpt/mpt.h @@ -1157,19 +1157,13 @@ mpt_tag_2_req(struct mpt_softc *mpt, uint32_t tag) 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 *mpt, request_t *req) 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 */ |