mbox series

[net,0/2] Fixes for clcsock shutdown behaviors

Message ID 20211125061932.74874-1-tonylu@linux.alibaba.com (mailing list archive)
Headers show
Series Fixes for clcsock shutdown behaviors | expand

Message

Tony Lu Nov. 25, 2021, 6:19 a.m. UTC
These patches fix issues when calling kernel_sock_shutdown(). To make
the solution clear, I split it into two patches.

Patch 1 keeps the return code of smc_close_final() in
smc_close_active(), which is more important than kernel_sock_shutdown().

Patch 2 doesn't call clcsock shutdown twice when applications call
smc_shutdown(). It should be okay to call kernel_sock_shutdown() twice,
I decide to avoid it for slightly speed up releasing socket.

Tony Lu (2):
  net/smc: Keep smc_close_final rc during active close
  net/smc: Don't call clcsock shutdown twice when smc shutdown

 net/smc/af_smc.c    | 8 ++++++++
 net/smc/smc_close.c | 8 ++++++--
 2 files changed, 14 insertions(+), 2 deletions(-)