MFC r278371:
cxgbe(4): a change to the synchronization rules within the the driver. This is purely cosmetic because the new rules are already followed.
This commit is contained in:
parent
6515048301
commit
103da45e0b
@ -803,7 +803,6 @@ struct adapter {
|
||||
#define ADAPTER_LOCK_ASSERT_OWNED(sc) mtx_assert(&(sc)->sc_lock, MA_OWNED)
|
||||
#define ADAPTER_LOCK_ASSERT_NOTOWNED(sc) mtx_assert(&(sc)->sc_lock, MA_NOTOWNED)
|
||||
|
||||
/* XXX: not bulletproof, but much better than nothing */
|
||||
#define ASSERT_SYNCHRONIZED_OP(sc) \
|
||||
KASSERT(IS_BUSY(sc) && \
|
||||
(mtx_owned(&(sc)->sc_lock) || sc->last_op_thr == curthread), \
|
||||
|
@ -3049,6 +3049,9 @@ mcfail:
|
||||
return (rc);
|
||||
}
|
||||
|
||||
/*
|
||||
* {begin|end}_synchronized_op must be called from the same thread.
|
||||
*/
|
||||
int
|
||||
begin_synchronized_op(struct adapter *sc, struct port_info *pi, int flags,
|
||||
char *wmesg)
|
||||
@ -3104,6 +3107,9 @@ done:
|
||||
return (rc);
|
||||
}
|
||||
|
||||
/*
|
||||
* {begin|end}_synchronized_op must be called from the same thread.
|
||||
*/
|
||||
void
|
||||
end_synchronized_op(struct adapter *sc, int flags)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user