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 #13006
(cherry picked from commit a3fbe2b)
Signed-off-by: Jonathon Fernyhough <jonathon@m2x.dev>
  • Loading branch information
Finix1979 authored and jonathonf committed Feb 2, 2022
1 parent 994f0c3 commit fa03c73
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 fa03c73

Please sign in to comment.