aboutsummaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorFinix1979 <[email protected]>2022-01-26 05:12:49 +0800
committerGitHub <[email protected]>2022-01-25 13:12:49 -0800
commita3fbe2b9421afcfafca58fbed93acc6d6bb7a5f6 (patch)
tree8aa69668ec919848283bc67e6b963bb679238d56 /module
parent5dccd7e8f3c9946763e227162d68164a3906f401 (diff)
Linux <4.8 compat: submit_bio() rw arg
When using the two argument version of submit_bio() in kernel's prior to 4.8 the first argument should be specified. It's used by block dump to report the bio direction. Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Finix Yan <[email protected]> Closes #13006
Diffstat (limited to 'module')
-rw-r--r--module/os/linux/zfs/vdev_disk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/os/linux/zfs/vdev_disk.c b/module/os/linux/zfs/vdev_disk.c
index c06ba613b..61518bad0 100644
--- a/module/os/linux/zfs/vdev_disk.c
+++ b/module/os/linux/zfs/vdev_disk.c
@@ -446,7 +446,7 @@ vdev_submit_bio_impl(struct bio *bio)
#ifdef HAVE_1ARG_SUBMIT_BIO
(void) submit_bio(bio);
#else
- (void) submit_bio(0, bio);
+ (void) submit_bio(bio_data_dir(bio), bio);
#endif
}