Skip to content

Miss write cmd with FLUSH category and Replay with "Q" action #1978

@rorychen

Description

@rorychen

Please acknowledge the following before creating a ticket

Description of the bug:
<There're two problems:

  1. The blocktrace replay adds the commands with __BLK_TA_QUEUE into the replay IO list. But at HDD side, the received commands are with __BLK_TA_ISSUE. Recommend adding the commands with __BLK_TA_ISSUE into replay IO list. At block layer, some sequential small IOs will be merged but the merge will not happen when replaying.
  2. For the command with FWFS, current replay will only keep FLUSH and discard the Write IO. We could use add the commands with BLK_TC_FLUSH/__BLK_TA_QUEUE into replay IO list then add the commands with __BLK_TA_ISSUE into replay IO list, so that the write IO will not be ignored.

blktrace - changed.c
blktrace - raw.c

Environment: <Linux 6.4 Kernel>

fio version: <3.34>

Reproduction steps
<>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions