1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-23 11:18:54 +00:00

In function umtxq_insert_queue, use parameter q (shared/exclusive queue)

instead of hard coded constant. This does not affect RELENG_8 and previous,
because the code only exists in the HEAD.
This commit is contained in:
David Xu 2010-02-10 05:47:34 +00:00
parent ed6933b252
commit 8251549f27
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=203744

View File

@ -420,7 +420,7 @@ umtxq_insert_queue(struct umtx_q *uq, int q)
uc = umtxq_getchain(&uq->uq_key);
UMTXQ_LOCKED_ASSERT(uc);
KASSERT((uq->uq_flags & UQF_UMTXQ) == 0, ("umtx_q is already on queue"));
uh = umtxq_queue_lookup(&uq->uq_key, UMTX_SHARED_QUEUE);
uh = umtxq_queue_lookup(&uq->uq_key, q);
if (uh != NULL) {
LIST_INSERT_HEAD(&uc->uc_spare_queue, uq->uq_spare_queue, link);
} else {