summaryrefslogtreecommitdiff
path: root/tools/perf
diff options
context:
space:
mode:
authorParav Pandit <parav@mellanox.com>2017-01-19 09:55:08 -0600
committerSagi Grimberg <sagi@grimberg.me>2017-01-26 17:45:03 +0200
commit748ff8408f8e208f279ba221e5c12612fbb4dddb (patch)
treeaa3271248e82fda49fbd805b39c19585e63d3bf6 /tools/perf
parent23a8ed4a624324dc696c328f09bd502c4a3816f0 (diff)
nvmet-rdma: Fix missing dma sync to nvme data structures
This patch performs dma sync operations on nvme_command and nvme_completion. nvme_command is synced (a) on receiving of the recv queue completion for cpu access. (b) before posting recv wqe back to rdma adapter for device access. nvme_completion is synced (a) on receiving of the recv queue completion of associated nvme_command for cpu access. (b) before posting send wqe to rdma adapter for device access. This patch is generated for git://git.infradead.org/nvme-fabrics.git Branch: nvmf-4.10 Signed-off-by: Parav Pandit <parav@mellanox.com> Reviewed-by: Max Gurtovoy <maxg@mellanox.com>
Diffstat (limited to 'tools/perf')
0 files changed, 0 insertions, 0 deletions
s in the rest of the code `pch->work_list' is protected by `pch->lock'. I don't know if this may cause race conditions. Similarly `pch->cyclic' is written by `pl330_alloc_chan_resources' under `pl330->lock' but read by `pl330_tx_submit' under `pch->lock'. Second, I have removed locking from `pl330_request_channel' and `pl330_release_channel' functions. Function `pl330_request_channel' is only called from `pl330_alloc_chan_resources', so the lock is already held. Function `pl330_release_channel' is called from `pl330_free_chan_resources', which already holds the lock, and from `pl330_del'. Function `pl330_del' is called in an error path of `pl330_probe' and at the end of `pl330_remove', but I assume that there cannot be concurrent accesses to the protected data at those points. Signed-off-by: Iago Abal <mail@iagoabal.eu> Reviewed-by: Marek Szyprowski <m.szyprowski@samsung.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'sound/pci/riptide/riptide.c')