Add engine flag FIO_SKIPPABLE_IOMEM_ALLOC
authorAlberto Faria <afaria@redhat.com>
Thu, 1 Dec 2022 22:07:55 +0000 (22:07 +0000)
committerVincent Fu <vincent.fu@samsung.com>
Fri, 2 Dec 2022 21:24:03 +0000 (16:24 -0500)
commitf2bcd554791ca002b90a9c202838ab04af0054e9
tree84e3a70b6c4075242bbcbaae0d9ae10e369be079
parenta601337a4d7b6dfc36677600d8d38948f2928d03
Add engine flag FIO_SKIPPABLE_IOMEM_ALLOC

It makes it valid to set option mem/iomem even when the engine specifies
iomem_alloc and iomem_free callbacks, allowing users to optionally use
fio's customizable memory allocation logic instead of the engine's.

This is in preparation for giving libblkio engine users the choice
between controlling memory allocation or delegating it to the libblkio
library.

Signed-off-by: Alberto Faria <afaria@redhat.com>
Signed-off-by: Vincent Fu <vincent.fu@samsung.com>
ioengines.h
memory.c