From: Andi Kleen <andi@firstfloor.org>
To: Parav Pandit <paravpandit@yahoo.com>
Cc: Linux kernel <linux-kernel@vger.kernel.org>
Subject: Re: Suspected sock_sendmsg() with MSG_DONTWAIT can block bug.
Date: Tue, 24 Feb 2009 16:54:30 +0100 [thread overview]
Message-ID: <878wnv4yq1.fsf@basil.nowhere.org> (raw)
In-Reply-To: <74923.15071.qm@web30107.mail.mud.yahoo.com> (Parav Pandit's message of "Tue, 24 Feb 2009 06:40:42 -0800 (PST)")
Parav Pandit <paravpandit@yahoo.com> writes:
> Short quick question:
> ---------------------
> If sock_sendmsg() is calls with MSG_DONTWAIT, it should send the packet without blocking the context or fail the call with error value.
It is allowed to fail with errors.
> Which means sock_sendmsg() with MSG_DONTWAIT can be called from soft-irq/ interrupt ctx.
> Is that correct?
No. It can still block for memory for example. Also there's no irq locking
in place Irq context is not allowed. MSG_DONTWAIT just means don't block
on buffer space or connection finish.
-Andi
--
ak@linux.intel.com -- Speaking for myself only.
prev parent reply other threads:[~2009-02-24 15:56 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-24 14:40 Parav Pandit
2009-02-24 15:54 ` Andi Kleen [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=878wnv4yq1.fsf@basil.nowhere.org \
--to=andi@firstfloor.org \
--cc=linux-kernel@vger.kernel.org \
--cc=paravpandit@yahoo.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
Powered by JetHome