filesetup: skip fallback invalidation with diskless ioengines
authorSitsofe Wheeler <sitsofe@yahoo.com>
Sat, 30 Dec 2017 20:58:59 +0000 (20:58 +0000)
committerSitsofe Wheeler <sitsofe@yahoo.com>
Fri, 12 Jan 2018 06:58:49 +0000 (06:58 +0000)
commit4e18b4d9fa379f450533fc019f25172560bff9d2
treea8404366ec2f70566e0658ad5101fc554e20f7aa
parent9d5fe300085759c0f764a62be27355fe80b5fd8f
filesetup: skip fallback invalidation with diskless ioengines

Since commit 0bcf41cdc22dfee6b3f3b2ba9a533b4b103c70c2 ("io_u:
re-invalidate cache when looping around without file open/close") the
job:

./fio --ioengine=null --size=4k --bs=4k --rate=4k \
 --time_based --runtime=2s --name=badinvalidate

repeatedly produces the following warning while running:

fio: cache invalidation of badinvalidate.0.0 failed: Bad file descriptor

Fix this by skipping cache invalidation and logging a debug message for
diskless ioengines that don't define an explicit invalidation op.

Signed-off-by: Sitsofe Wheeler <sitsofe@yahoo.com>
filesetup.c