]> git.proxmox.com Git - mirror_zfs.git/commit
linux 6.3 compat: needs REQ_PREFLUSH | REQ_OP_WRITE
authoryouzhongyang <youzhong@gmail.com>
Fri, 31 Mar 2023 16:46:22 +0000 (12:46 -0400)
committerGitHub <noreply@github.com>
Fri, 31 Mar 2023 16:46:22 +0000 (09:46 -0700)
commitc5431f14655ce05d1ea99cb012806f0e5873d257
treea5480f472494e2ecd6df1063b8ab6345a1a4fa63
parent1142362ff606ab7a1262d7d6f1f9be2205825065
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
include/os/linux/kernel/linux/blkdev_compat.h