diff options
author | Finix1979 <yanchongwen@hotmail.com> | 2022-01-26 05:12:49 +0800 |
---|---|---|
committer | Tony Hutter <hutter2@llnl.gov> | 2022-02-04 08:33:52 -0800 |
commit | 1009e609920f83d803224d1345332fb82dc85009 (patch) | |
tree | 74d87b46239960cceb15ca7f5482e3df3b9e55a7 | |
parent | 4f6599416afcbf88b536ceb147a3f100712b3c82 (diff) |
Linux <4.8 compat: submit_bio() rw argzfs-2.1.3-staging
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 <behlendorf1@llnl.gov>
Signed-off-by: Finix Yan <yancw@info2soft.com>
Closes #13006
-rw-r--r-- | module/os/linux/zfs/vdev_disk.c | 2 |
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 a432a7364..581a79086 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 } |