HomeFreeBSD

linux 6.3 compat: needs REQ_PREFLUSH | REQ_OP_WRITE

Description

linux 6.3 compat: needs REQ_PREFLUSH | REQ_OP_WRITE

Modify bio_set_flush() so if kernel version is >= 4.10, flags
REQ_PREFLUSH and REQ_OP_WRITE are set together.

Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Youzhong Yang <yyang@mathworks.com>
Closes #14695

Details

Provenance
youzhongyang <youzhong@gmail.com>Authored on Mar 31 2023, 4:46 PM
GitHub <noreply@github.com>Committed on Mar 31 2023, 4:46 PM
Parents
rG1142362ff606: Use vmem_zalloc to silence allocation warning
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rGc5431f14655c: linux 6.3 compat: needs REQ_PREFLUSH | REQ_OP_WRITE (authored by youzhongyang <youzhong@gmail.com>).Mar 31 2023, 4:46 PM