lkml.org 
[lkml]   [2009]   [Feb]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Suspected sock_sendmsg() with MSG_DONTWAIT can block bug.
From
Date
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.


\
 
 \ /
  Last update: 2009-02-24 16:59    [W:0.093 / U:0.340 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site