-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fio: add FIO_RO_NEEDS_RW_OPEN ioengine flag
Some oddball cases like sg/bsg require devices to be opened for writing in order to do read commands. So fio has been opening character devices in rw mode for read workloads. However, nvme generic character devices do not need (and may refuse) a writeable open for read workloads. So instead of always opening character devices in rw mode, open devices in rw mode for read workloads only if the ioengine has the FIO_RO_NEEDS_RW_OPEN flag. Link: https://lore.kernel.org/fio/[email protected]/ Signed-off-by: Vincent Fu <[email protected]>
- Loading branch information
1 parent
3a6ae7b
commit d72b10e
Showing
3 changed files
with
4 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters