]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r302491: Switch ctx_lock from mutex to rmlock.
authormav <mav@FreeBSD.org>
Thu, 18 Aug 2016 10:42:48 +0000 (10:42 +0000)
committermav <mav@FreeBSD.org>
Thu, 18 Aug 2016 10:42:48 +0000 (10:42 +0000)
commitf9487b65fbf74a1fe3c6dc6b53edb88267087078
tree0234f2258b7eac69036da9946ec08460d049986f
parent0969074f81a0756cc1a2718de9f554590775cb0b
MFC r302491: Switch ctx_lock from mutex to rmlock.

It is odd idea to serialize different MSI-X vectors.  Use of rmlocks
here allows them to execute in parallel, but still protects ctx.
If upper layers require any additional serialization -- they can
do it by themselves.
sys/dev/ntb/ntb_hw/ntb_hw.c