nvmet-rdma: Fix missing dma sync to nvme data structures
authorParav Pandit <parav@mellanox.com>
Thu, 19 Jan 2017 15:55:08 +0000 (09:55 -0600)
committerRaspbian kernel package updater <root@raspbian.org>
Sun, 23 Jul 2017 02:58:46 +0000 (02:58 +0000)
commitf38168f1a62a916ccb56418e239c833e72cb948f
tree9806e085b4382e6ad13b7ddcd6cab1520139c8ea
parentbd0d08e6dc491b00176e071a83d53446bb990348
nvmet-rdma: Fix missing dma sync to nvme data structures

[ Upstream commit 748ff8408f8e208f279ba221e5c12612fbb4dddb ]

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>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/nvme/target/rdma.c