[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20150327081243.GA26453@infradead.org>
Date: Fri, 27 Mar 2015 01:12:43 -0700
From: Christoph Hellwig <hch@...radead.org>
To: Volker Lendecke <Volker.Lendecke@...Net.DE>
Cc: Andrew Morton <akpm@...ux-foundation.org>,
Milosz Tanski <milosz@...in.com>, linux-kernel@...r.kernel.org,
Christoph Hellwig <hch@...radead.org>,
linux-fsdevel@...r.kernel.org, linux-aio@...ck.org,
Mel Gorman <mgorman@...e.de>, Tejun Heo <tj@...nel.org>,
Jeff Moyer <jmoyer@...hat.com>, Theodore Ts'o <tytso@....edu>,
Al Viro <viro@...iv.linux.org.uk>, linux-api@...r.kernel.org,
Michael Kerrisk <mtk.manpages@...il.com>,
linux-arch@...r.kernel.org, Dave Chinner <david@...morbit.com>
Subject: Re: [PATCH v7 0/5] vfs: Non-blockling buffered fs read (page cache
only)
On Fri, Mar 27, 2015 at 09:02:51AM +0100, Volker Lendecke wrote:
> No, this is not the case. Maybe my whole understanding of
> pread is wrong: I always thought that it won't return short
> if the file spans the pread range. EINTR nonwithstanding.
Per Posix it could, however if we do it for regular file reads
hell will break lose because no one expects it. So in practice
it can't.
>
> > if (it's all in cache)
>
> I know I'm repeating myself: We have a race condition here.
> A small one, but it is racy. I've seen loaded systems where
> we spend seconds between becoming re-scheduled. In these
> systems, it will be the norm to block in later reads. And we
> don't have a good way to detect this situation afterwards
> and turn to threads as a precaution next time.
Exactly. One that matters in real life, too. Nevermind that
preadv2 is a way cleaner interface than fincore.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists