From: David Miller <davem@davemloft.net>
To: ubraun@linux.vnet.ibm.com
Cc: netdev@vger.kernel.org, linux-s390@vger.kernel.org,
schwidefsky@de.ibm.com, heiko.carstens@de.ibm.com,
raspl@linux.vnet.ibm.com
Subject: Re: [PATCH net 1/1] net/smc: wakeup closing listen socket
Date: Thu, 08 Mar 2018 12:43:57 -0500 (EST) [thread overview]
Message-ID: <20180308.124357.718414383801823111.davem@davemloft.net> (raw)
In-Reply-To: <20180307125931.42248-2-ubraun@linux.vnet.ibm.com>
From: Ursula Braun <ubraun@linux.vnet.ibm.com>
Date: Wed, 7 Mar 2018 13:59:31 +0100
> Closing of a listen socket wakes up kernel_accept() of
> smc_tcp_listen_worker(), and then has to wait till
> smc_tcp_listen_worker() gives up the internal clcsock. This wait is
> non-interruptible, and does not fit to the interruptible wakeup in
> smc_tcp_listen_worker().
I am having a hard time understanding this.
A non-interruptible sleep just means that the sleeper can only be
woken up by the event itself. Said another way, signals and other
unrelated events do not wake up the sleeper.
So as long as the socket close emits the wakeup event, the
non-interruptible sleeper will wake up.
It is also a huge red flag that you feel that you need custom handling
in this area and can't use the generic infrastructure and routines for
this.
Without a better understanding and explanation, there is no way I am
applying this. It seems that you guys do a lot of things in custom
ways that really should follow the methods and mechanisms used by
other protocol families in the tree.
Thank you.
prev parent reply other threads:[~2018-03-08 17:43 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-07 12:59 [PATCH net 0/1] net/smc: fix 2018-03-07 Ursula Braun
2018-03-07 12:59 ` [PATCH net 1/1] net/smc: wakeup closing listen socket Ursula Braun
2018-03-08 17:43 ` David Miller [this message]
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=20180308.124357.718414383801823111.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=heiko.carstens@de.ibm.com \
--cc=linux-s390@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=raspl@linux.vnet.ibm.com \
--cc=schwidefsky@de.ibm.com \
--cc=ubraun@linux.vnet.ibm.com \
/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;
as well as URLs for NNTP newsgroup(s).