Re: [PATCH v7 0/5] vfs: Non-blockling buffered fs read (page cache only)

From: Christoph Hellwig
Date: Fri Mar 27 2015 - 04:48:47 EST


On Fri, Mar 27, 2015 at 01:35:16AM -0700, Andrew Morton wrote:
> fincore() doesn't have to be ugly. Please address the design issues I
> raised. How is pread2() useful to the class of applications which
> cannot proceed until all data is available?

It actually makes them work correctly? preadv2( ..., DONTWAIT) will
return -EGAIN, which causes them to bounce to the threadpool where
they call preadv(...).
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/