Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

io_uring: Add 'write_mode' option for optional cmds #1766

Merged
merged 1 commit into from
Jun 3, 2024

Commits on May 31, 2024

  1. io_uring: Add 'write_mode' option for optional cmds

    Add a new option 'write_mode' to support additional optional Write
    command family such as Write Uncorrectable and Write Zeroes in NVMe.
    Since we have io_uring_cmd ioengine where we can define the actual
    opcode of the command, this option will be used to test NVMe device with
    various combination of Write command types.
    
    'write_mode' option can be given either 'write', 'uncor', 'zeroes' or
    'verify'.  'write' is for normal Write command which is by default,
    'uncor' is for Write Uncorrectable, 'zeroes' for Write Zeroes and 'verify'
    for Verify command  This should be used with DDIR_WRITE ddir.
    
    This patch updates command's opcode in fio_ioring_init() to avoid
    branches in the I/O hottest path giving opcode value to the
    fio_nvme_uring_cmd_prep() as an argument.
    
    Signed-off-by: Minwoo Im <minwoo.im@samsung.com>
    minwooim committed May 31, 2024
    Configuration menu
    Copy the full SHA
    87a4903 View commit details
    Browse the repository at this point in the history