OSDN Git Service

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)
commit6a37ad3da5d64a632d03a8dc272c65e706cc7160
tree2b921e75898ccb1d6b84a8e41852eb76367ab24c
parent2c1d3e50302fe3e0bd6873323877c2ad19db3f49
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