From: Tony Lu <tonylu@linux.alibaba.com>
To: kgraul@linux.ibm.com
Cc: kuba@kernel.org, davem@davemloft.net, netdev@vger.kernel.org,
linux-s390@vger.kernel.org, linux-rdma@vger.kernel.org
Subject: [PATCH net 0/2] Fixes for clcsock shutdown behaviors
Date: Thu, 25 Nov 2021 14:19:31 +0800 [thread overview]
Message-ID: <20211125061932.74874-1-tonylu@linux.alibaba.com> (raw)
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(-)
--
2.32.0.3.g01195cf9f
next reply other threads:[~2021-11-25 6:22 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-25 6:19 Tony Lu [this message]
2021-11-25 6:19 ` [PATCH net 1/2] net/smc: Keep smc_close_final rc during active close Tony Lu
2021-11-25 10:51 ` Karsten Graul
2021-11-25 6:19 ` [PATCH net 2/2] net/smc: Don't call clcsock shutdown twice when smc shutdown Tony Lu
2021-11-25 11:02 ` Karsten Graul
2021-11-25 12:41 ` Tony Lu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20211125061932.74874-1-tonylu@linux.alibaba.com \
--to=tonylu@linux.alibaba.com \
--cc=davem@davemloft.net \
--cc=kgraul@linux.ibm.com \
--cc=kuba@kernel.org \
--cc=linux-rdma@vger.kernel.org \
--cc=linux-s390@vger.kernel.org \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox