summaryrefslogtreecommitdiffstats
path: root/net/smc/smc_llc.c
diff options
context:
space:
mode:
authorUrsula Braun <ubraun@linux.ibm.com>2019-02-04 13:44:44 +0100
committerDavid S. Miller <davem@davemloft.net>2019-02-04 09:11:19 -0800
commitad6f317f720f4a3121756c23831a43dda9b095e5 (patch)
treedacaa78d52ad4cd6b3850618987e5cc6de80cb52 /net/smc/smc_llc.c
parent53bc8d2af08654659abfadfd3e98eb9922ff787c (diff)
downloadlinux-ad6f317f720f4a3121756c23831a43dda9b095e5.tar.gz
linux-ad6f317f720f4a3121756c23831a43dda9b095e5.tar.bz2
linux-ad6f317f720f4a3121756c23831a43dda9b095e5.zip
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>
Diffstat (limited to 'net/smc/smc_llc.c')
-rw-r--r--net/smc/smc_llc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/smc/smc_llc.c b/net/smc/smc_llc.c
index a6d3623d06f4..4fd60c522802 100644
--- a/net/smc/smc_llc.c
+++ b/net/smc/smc_llc.c
@@ -166,7 +166,8 @@ static int smc_llc_add_pending_send(struct smc_link *link,
{
int rc;
- rc = smc_wr_tx_get_free_slot(link, smc_llc_tx_handler, wr_buf, pend);
+ rc = smc_wr_tx_get_free_slot(link, smc_llc_tx_handler, wr_buf, NULL,
+ pend);
if (rc < 0)
return rc;
BUILD_BUG_ON_MSG(