Karsten Graul fd57770dd1 net/smc: wait for pending work before clcsock release_sock
When the clcsock is already released using sock_release() and a pending
smc_listen_work accesses the clcsock than that will fail. Solve this
by canceling and waiting for the work to complete first. Because the
work holds the sock_lock it must make sure that the lock is not hold
before the new helper smc_clcsock_release() is invoked. And before the
smc_listen_work starts working check if the parent listen socket is
still valid, otherwise stop the work early.

Signed-off-by: Karsten Graul <kgraul@linux.ibm.com>
Signed-off-by: Ursula Braun <ubraun@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-04-11 11:04:08 -07:00
..
2017-07-29 11:22:58 -07:00
2019-02-21 10:34:37 -08:00
2019-02-21 10:34:37 -08:00
2018-11-21 16:14:56 -08:00
2018-11-21 16:14:56 -08:00
2019-02-01 02:01:45 -05:00
2018-05-04 11:45:06 -04:00
2019-02-21 10:19:20 -08:00