]> git.baikalelectronics.ru Git - kernel.git/commit
net/smc: wait for tx completions before link freeing
authorUrsula Braun <ubraun@linux.ibm.com>
Thu, 14 Nov 2019 12:02:46 +0000 (13:02 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Nov 2019 20:28:28 +0000 (12:28 -0800)
commit52bb750be08a2f151d76db5682ca890ef8d68cc1
tree2b921e75898ccb1d6b84a8e41852eb76367ab24c
parentdd22698e7c818350d6daec5c55227b187c8e23f4
net/smc: wait for tx completions before link freeing

Make sure all pending work requests are completed before freeing
a link.
Dismiss tx pending slots already when terminating a link group to
exploit termination shortcut in tx completion queue handler.

And kill the completion queue tasklets after destroy of the
completion queues, otherwise there is a time window for another
tasklet schedule of an already killed tasklet.

Signed-off-by: Ursula Braun <ubraun@linux.ibm.com>
Signed-off-by: Karsten Graul <kgraul@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/smc/smc_core.c
net/smc/smc_ib.c
net/smc/smc_wr.c