]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Switch ctx_lock from mutex to rmlock.
authorAlexander Motin <mav@FreeBSD.org>
Sat, 9 Jul 2016 11:47:52 +0000 (11:47 +0000)
committerAlexander Motin <mav@FreeBSD.org>
Sat, 9 Jul 2016 11:47:52 +0000 (11:47 +0000)
commitef48f663495c2fe1cc911cbec80e4043def9b855
tree2dd7f32d9c351c71843298736d5811e17374cb6b
parent1be8a2635c2a5a1ff2d6ca34d5f5e47a0302e30f
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