lkml.org 
[lkml]   [2014]   [Sep]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH 7/7] check for O_NONBLOCK in all read_iter instances
Date
Christoph Hellwig <hch@infradead.org> writes:

>> Again, the right return value for the O_DIRECT case is EINVAL.
>
> Is it? We define -EAGAIN as it would block, which is defintively true
> for O_DIRECT reads.

It will *always* block. So I don't think it's valid to ask for a
non-blocking read on a file opened with O_DIRECT. What am I missing?

Cheers,
Jeff


\
 
 \ /
  Last update: 2014-09-17 00:01    [W:0.981 / U:0.268 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site