mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +03:00
Call cv_signal() with mutex held
In bqueue_dequeue(), call cv_signal() with bq_lock held. Re-enable rsend_009_pos to test the fix. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Boris Protopopov <boris.protopopov@actifio.com> Closes #5887
This commit is contained in:
committed by
Brian Behlendorf
parent
7e35ea783e
commit
03928896e1
+1
-1
@@ -97,8 +97,8 @@ bqueue_dequeue(bqueue_t *q)
|
||||
ASSERT3P(ret, !=, NULL);
|
||||
item_size = obj2node(q, ret)->bqn_size;
|
||||
q->bq_size -= item_size;
|
||||
mutex_exit(&q->bq_lock);
|
||||
cv_signal(&q->bq_add_cv);
|
||||
mutex_exit(&q->bq_lock);
|
||||
return (ret);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user