net/smc: preallocated memory for rdma work requests
authorUrsula Braun <ubraun@linux.ibm.com>
Mon, 4 Feb 2019 12:44:44 +0000 (13:44 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Feb 2019 17:11:19 +0000 (09:11 -0800)
commitad6f317f720f4a3121756c23831a43dda9b095e5
treedacaa78d52ad4cd6b3850618987e5cc6de80cb52
parent53bc8d2af08654659abfadfd3e98eb9922ff787c
net/smc: preallocated memory for rdma work requests

The work requests for rdma writes are built in local variables within
function smc_tx_rdma_write(). This violates the rule that the work
request storage has to stay till the work request is confirmed by
a completion queue response.
This patch introduces preallocated memory for these work requests.
The storage is allocated, once a link (and thus a queue pair) is
established.

Signed-off-by: Ursula Braun <ubraun@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/smc/smc_cdc.c
net/smc/smc_cdc.h
net/smc/smc_core.h
net/smc/smc_llc.c
net/smc/smc_tx.c
net/smc/smc_wr.c
net/smc/smc_wr.h