[LTP] [PATCH] syscalls/preadv203: Add basic RWF_NOWAIT test
Wed Feb 6 09:36:11 CET 2019
On Monday 28 January 2019 07:16 PM, Cyril Hrubis wrote:
> From: Cyril Hrubis <email@example.com>
> We are attempting to trigger the EAGAIN path for the RWF_NOWAIT flag.
> In order to do so the test runs three threads:
> * nowait_reader: reads from a random offset from a random file with
> RWF_NOWAIT flag and expects to get EAGAIN and short
> read sooner or later
> * writer_thread: rewrites random file in order to keep the underlying device
> bussy so that pages evicted from cache cannot be faulted
> * cache_dropper: attempts to evict pages from a cache in order for reader to
> hit evicted page sooner or later
> Signed-off-by: Cyril Hrubis <firstname.lastname@example.org>
> CC: Jiri Kosina <email@example.com>
> CC: Linux-MM <firstname.lastname@example.org>
> CC: kernel list <email@example.com>
> CC: Linux API <firstname.lastname@example.org>
> I was wondering if we can do a better job at flushing the caches. Is
> there an interface for flusing caches just for the device we are using
> for the test?
Will the BLKFLSBUF ioctl be suitable for this purpose?
More information about the ltp