X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fseq.c;h=7a342440276f4d34f3841a5ef38ef16f936f8e07;hb=003ce655b7116d18c86a74c50391e54990346931;hp=36e506570fe1270c66d0a588baa724a1b42a1934;hpb=5d389d55c78a20bd18b68b35f0e6cabae2686dcb;p=sliver-openvswitch.git diff --git a/lib/seq.c b/lib/seq.c index 36e506570..7a3424402 100644 --- a/lib/seq.c +++ b/lib/seq.c @@ -52,7 +52,7 @@ struct seq_thread { bool waiting OVS_GUARDED; /* True if latch_wait() already called. */ }; -static struct ovs_mutex seq_mutex = OVS_ADAPTIVE_MUTEX_INITIALIZER; +static struct ovs_mutex seq_mutex = OVS_MUTEX_INITIALIZER; static uint64_t seq_next OVS_GUARDED_BY(seq_mutex) = 1; @@ -148,6 +148,7 @@ seq_wait__(struct seq *seq, uint64_t value) waiter = xmalloc(sizeof *waiter); waiter->seq = seq; hmap_insert(&seq->waiters, &waiter->hmap_node, hash); + waiter->ovsthread_id = id; waiter->value = value; waiter->thread = seq_thread_get(); list_push_back(&waiter->thread->waiters, &waiter->list_node);