Skip to content

Commit

Permalink
Linux <4.8 compat: submit_bio() rw arg
Browse files Browse the repository at this point in the history
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 openzfs#13006
  • Loading branch information
Finix1979 authored and nicman23 committed Aug 22, 2022
1 parent 4f49b75 commit afa7bdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module/os/linux/zfs/vdev_disk.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit afa7bdf

Please sign in to comment.