]> git.proxmox.com Git - mirror_qemu.git/commit
hw/rdma: Protect against concurrent execution of poll_cq
authorYuval Shaia <yuval.shaia@oracle.com>
Mon, 11 Mar 2019 10:29:07 +0000 (03:29 -0700)
committerMarcel Apfelbaum <marcel.apfelbaum@gmail.com>
Sat, 16 Mar 2019 13:52:44 +0000 (15:52 +0200)
commit2cfa95300908f401f5b9bdf3de734cf6228a2722
treec1b3ef94eb46a9a8f205bd22b5f9757ed9000859
parentb20fc7951084bb77e867d114c916e409c3a6821a
hw/rdma: Protect against concurrent execution of poll_cq

The function rdma_poll_cq is called from two contexts - completion
handler thread which sense new completion on backend channel and
explicitly as result of guest issuing poll_cq command.

Add lock to protect against concurrent executions.

Signed-off-by: Yuval Shaia <yuval.shaia@oracle.com>
Reviewed-by: Marcel Apfelbaum <marcel.apfelbaum@gmail.com>
Message-Id: <1552300155-25216-4-git-send-email-yuval.shaia@oracle.com>
Reviewed-by: Kamal Heib <kamalheib1@gmail.com>
Signed-off-by: Marcel Apfelbaum <marcel.apfelbaum@gmail.com>
hw/rdma/rdma_backend.c
hw/rdma/rdma_rm.c
hw/rdma/rdma_rm_defs.h