lkml.org 
[lkml]   [2004]   [Oct]   [5]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateTue, 5 Oct 2004 11:35:07 -0400 (EDT)
FromRik van Riel <>
SubjectRe: [patch rfc] towards supporting O_NONBLOCK on regular files
On Fri, 1 Oct 2004, Jeff Moyer wrote:

> This patch makes an attempt at supporting the O_NONBLOCK flag for
> regular files.  It's pretty straight-forward.  One limitation is that we
> still call into the readahead code, which I believe can block.  
> However, if we don't do this, then an application which only uses
> non-blocking reads may never get it's data.

I like it, though for programs which are real serious about
O_NONBLOCK we might want to hand off readahead to a helper
thread instead of starting readahead in the same context...

Not sure if we would always want this, though ;)

-- 
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it." - Brian W. Kernighan

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:06    [from the cache]
©2003-2008