netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Eric Dumazet <eric.dumazet@gmail.com>
To: soukjin.bae@samsung.com,
	"netdev@vger.kernel.org" <netdev@vger.kernel.org>
Cc: 유금환 <geumhwan.yu@samsung.com>, 안치훈 <ch.ahn@samsung.com>
Subject: Re: Re: [Android][Kernel][TCP/IP] report of packet discarding during tcp handshaking
Date: Wed, 07 Feb 2018 06:44:00 -0800	[thread overview]
Message-ID: <1518014640.3715.157.camel@gmail.com> (raw)
In-Reply-To: <20180207071910epcms1p85cb5bac008d8447c973352e0f7a47253@epcms1p8>

On Wed, 2018-02-07 at 16:19 +0900, 배석진 wrote:
> Dear Dumazet,
> 
> 
> although with your changes, the problem still there.
> own_req couldn't update the lost_race as you wanted.
> maybee it needs additional locking method.
> 

We are not going to add udelay(500) in a loop to solve a race, sorry.

My patch should work, because the lost_race is true means that the
other cpu had put its new (full blown) socket into the hash table.

So this cpu should find it while doing its second lookup.

If not, too bad. Maybe socket has already been accept() and close()

      reply	other threads:[~2018-02-07 14:44 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20180207021647epcms1p128701b4f7e63a88838dd132221119571@epcms1p1>
2018-02-07  2:16 ` [Android][Kernel][TCP/IP] report of packet discarding during tcp handshaking 배석진
2018-02-07  4:31   ` Eric Dumazet
     [not found]   ` <CGME20180207021647epcms1p128701b4f7e63a88838dd132221119571@epcms1p8>
2018-02-07  7:19     ` 배석진
2018-02-07 14:44       ` Eric Dumazet [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=1518014640.3715.157.camel@gmail.com \
    --to=eric.dumazet@gmail.com \
    --cc=ch.ahn@samsung.com \
    --cc=geumhwan.yu@samsung.com \
    --cc=netdev@vger.kernel.org \
    --cc=soukjin.bae@samsung.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).