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
Tony Hutter <hutter2@llnl.gov>Committed on Apr 13 2023, 4:39 PM
Parents
rG3d9f37026d65: Fix "Add colored output to zfs list"
Branches
Unknown
Tags
Unknown

Event Timeline

Tony Hutter <hutter2@llnl.gov> committed rGe202d3b8673d: linux 6.3 compat: needs REQ_PREFLUSH | REQ_OP_WRITE (authored by youzhongyang <youzhong@gmail.com>).Apr 13 2023, 4:39 PM