FreeBSD/sys/dev/xen/blkback/blkback.c
/**
 * Return an allocated transaction tracking structure to the free pool.
 *
 * \param xbb  Per-instance xbb configuration structure.
 * \param req  The request structure to free.
 */
Return an allocated transaction tracking structure to the free pool.
\param xbb  Per-instance xbb configuration structure.
\param req  The request structure to free.
Return an allocated transaction tracking structure to the free pool . \ param xbb Per - instance xbb configuration structure . \ param req The request structure to free .
static inline void
xbb_release_req(struct xbb_softc *xbb, struct xbb_xen_req *req)
{
	mtx_assert(&xbb->lock, MA_OWNED);
	STAILQ_INSERT_HEAD(&xbb->request_free_stailq, req, links);
	xbb->active_request_count--;
	KASSERT(xbb->active_request_count >= 0,
		("xbb_release_req: negative active count"));
}
static inline void xbb_release_req ( struct xbb_softc * xbb , struct xbb_xen_req * req ) { mtx_assert ( & xbb -> lock , MA_OWNED ) ; STAILQ_INSERT_HEAD ( & xbb -> request_free_stailq , req , links ) ; xbb -> active_request_count -- ; KASSERT ( xbb -> active_request_count >= 0 , ( " " ) ) ; }
Return an allocated transaction tracking structure to the free pool.
Return an allocated transaction tracking structure to the free pool .