From: Li Yu <raise.sail@gmail.com>
To: Eric Dumazet <eric.dumazet@gmail.com>,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: A possible bug in reqsk_queue_hash_req()
Date: Wed, 21 Apr 2010 10:02:02 +0800 [thread overview]
Message-ID: <4BCE5C9A.3080805@gmail.com> (raw)
In-Reply-To: <1271775681.7895.21.camel@edumazet-laptop>
Eric Dumazet 写道:
> Le mardi 20 avril 2010 à 21:21 +0800, Li Yu a écrit :
>
>> In my word, write lock also means mutual exclusion among all writers,
>> is it right?
>>
>
> Yes, generally speaking.
>
> But not on this use case.
>
> This is documented in an include file, if you search for syn_wait_lock
>
>>> All callers of this reqsk_queue_hash_req() must have the socket locked
>> See. If we always assumed the caller should hold the locked socket
>> first, this is not a bug, but I think we'd better add a comment at
>> header file.
>
> It is documented, as a matter of fact :)
>
>
Great, this isn't a bug, you are right here :)
I just found out these comments about syn_wait_lock, it seem that we need to crossed reference documents for kernel API, a newbie like me, may confused at such similar problems.
>
prev parent reply other threads:[~2010-04-21 2:02 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-20 10:35 A possible bug in reqsk_queue_hash_req() Li Yu
2010-04-20 11:06 ` Eric Dumazet
2010-04-20 21:24 ` David Miller
2010-04-20 21:29 ` Eric Dumazet
[not found] ` <u2m9b948ee41004200621zf829996y813c37c5f6a3691f@mail.gmail.com>
[not found] ` <1271775681.7895.21.camel@edumazet-laptop>
2010-04-21 2:02 ` Li Yu [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=4BCE5C9A.3080805@gmail.com \
--to=raise.sail@gmail.com \
--cc=eric.dumazet@gmail.com \
--cc=linux-kernel@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