ipmi_polled_enqueue_request() is already called with the lock held, just

assert it rather than recursing.

Reported by:	mjacob
Pointy hat:	jhb
MFC after:	3 days
This commit is contained in:
John Baldwin 2006-10-12 16:26:42 +00:00
parent d566310d21
commit 5283d39b98

View File

@ -584,9 +584,9 @@ int
ipmi_polled_enqueue_request(struct ipmi_softc *sc, struct ipmi_request *req)
{
IPMI_LOCK(sc);
IPMI_LOCK_ASSERT(sc);
TAILQ_INSERT_TAIL(&sc->ipmi_pending_requests, req, ir_link);
IPMI_UNLOCK(sc);
cv_signal(&sc->ipmi_request_added);
return (0);
}