fio: add hipri option to sg engine
authorDouglas Gilbert <dgilbert@interlog.com>
Mon, 25 Jan 2021 20:26:51 +0000 (15:26 -0500)
committerJens Axboe <axboe@kernel.dk>
Mon, 25 Jan 2021 21:05:06 +0000 (14:05 -0700)
commitb0dc148eab1a65131f9fe9ade2abf6107e934008
tree56a1be936cee7de0adef719ddc247e22289bfe75
parent48ff7df9daea86c82a572b0a840bb8371b6b1a29
fio: add hipri option to sg engine

Adds hipri option to the Linux sg driver engine. This turns on the
SGV4_FLAG_HIPRI flag in recent sg drivers (January 2021) on READ
and WRITE commands (and not on UNMAP (trim), VERIFY, etc). Uses
blk_poll() and the mq_poll() callback in SCSI LLDs. The mechanism
is also called "iopoll".

The Linux sg engine in fio uses the struct sg_io_hdr based interface
known as the sg driver "v3" interface.
Linux sg drivers in the kernel prior to January 2021 (sg version
4.0.12) will just ignore the SGV4_FLAG_HIPRI flag and do normal
completions where LLDs indicate command completion with a (software)
interrupt or similar mechanism.

Update fio.1 (manpage) with new hipri sg engine option.

Signed-off-by: Douglas Gilbert <dgilbert@interlog.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
engines/sg.c
fio.1