diff options
author | Coleman Kane <[email protected]> | 2020-08-09 12:12:25 -0400 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2020-08-11 13:37:33 -0700 |
commit | d817c17100183b266aa6bf8b868e016805d51d16 (patch) | |
tree | c6a0d14c441b00f12f6081b44f0d675fd61d45a1 /include/os/linux | |
parent | dcdc12e8babb2490249cd93ec77863b216c25c5d (diff) |
Linux 5.9 compat: make_request_fn replaced with submit_bio interface
The make_request_fn and associated API was replaced recently in a
Linux 5.9 merge, to replace its functionality with a new submit_bio
member in struct block_device_operations.
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Coleman Kane <[email protected]>
Closes #10696
Diffstat (limited to 'include/os/linux')
-rw-r--r-- | include/os/linux/kernel/linux/blkdev_compat.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/os/linux/kernel/linux/blkdev_compat.h b/include/os/linux/kernel/linux/blkdev_compat.h index b46a6e40a..1cdc300a6 100644 --- a/include/os/linux/kernel/linux/blkdev_compat.h +++ b/include/os/linux/kernel/linux/blkdev_compat.h @@ -487,6 +487,7 @@ blk_generic_end_io_acct(struct request_queue *q, int rw, #endif } +#ifndef HAVE_SUBMIT_BIO_IN_BLOCK_DEVICE_OPERATIONS static inline struct request_queue * blk_generic_alloc_queue(make_request_fn make_request, int node_id) { @@ -500,5 +501,6 @@ blk_generic_alloc_queue(make_request_fn make_request, int node_id) return (q); #endif } +#endif /* !HAVE_SUBMIT_BIO_IN_BLOCK_DEVICE_OPERATIONS */ #endif /* _ZFS_BLKDEV_H */ |