You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
engines/io_uring: add read_mode=prefetch for bsg cmd_type
Introduce a new engine option, read_mode, that selects which command
variant is issued for DDIR_READ, symmetric to the existing write_mode
option. Two values are supported: 'read', which preserves the current
behavior, and 'prefetch', which issues SCSI PRE-FETCH commands.
PRE-FETCH pulls the requested LBAs from the medium into the device
read cache without transferring the data to the host. This is useful
for warming the device read cache prior to a subsequent measurement,
and for measuring the overhead of the prefetch path itself.
The PRE-FETCH CDB length follows the cdb_len option:
PRE-FETCH(10)=0x34 and PRE-FETCH(16)=0x90. readfua is rejected in
this mode because the FUA bit is not defined for PRE-FETCH.
read_mode is currently only meaningful for the bsg cmd_type. Passing
a non-default value with cmd_type=nvme is rejected at engine init
rather than silently ignored, so that users notice a
misconfiguration.
Signed-off-by: Jungwon Lee <jjung1.lee@samsung.com>
0 commit comments