Commit bc32a0c2 authored by Nils Goroll's avatar Nils Goroll

fix lock order

the producer should have the T_FINAL lock before making the node
available by releasing the tree lock
parent 87eeb9fe
......@@ -2469,9 +2469,10 @@ vped_deliver(struct req *req, struct boc *boc, int wantbody)
if (parent->state != ST_PRIVATE)
AZ(pthread_cond_signal(&tree->cond));
Lck_Unlock(&tree->tree_lock);
AZ(pthread_mutex_lock(&node->final.fi_mtx));
Lck_Unlock(&tree->tree_lock);
if (node->final.fi_state < FI_GO)
AZ(pthread_cond_wait(&node->final.fi_cond,
&node->final.fi_mtx));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment