aboutsummaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorChunwei Chen <[email protected]>2015-11-23 14:47:29 -0800
committerBrian Behlendorf <[email protected]>2015-12-01 16:48:08 -0800
commit1a093716788a08b5d038c49ab99a6e9363c97a64 (patch)
treebf576b9d99bff11be26ffd48bf30acf281126767 /module
parent43518d92fd9200aa07a871604a682e0dc7dff981 (diff)
Linux 4.4 compat: make_request_fn returns blk_qc_t
As part of block polling support in Linux 4.4, make_request_fn should return a cookie value of type blk_qc_t. For now, we make zvol_request always return BLK_QC_T_NONE until we assess whether and how we want to support block polling. Signed-off-by: Chunwei Chen <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Issue #4021
Diffstat (limited to 'module')
-rw-r--r--module/zfs/zvol.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/module/zfs/zvol.c b/module/zfs/zvol.c
index cdaa838d2..574d3c306 100644
--- a/module/zfs/zvol.c
+++ b/module/zfs/zvol.c
@@ -755,6 +755,8 @@ out1:
spl_fstrans_unmark(cookie);
#ifdef HAVE_MAKE_REQUEST_FN_RET_INT
return (0);
+#elif defined(HAVE_MAKE_REQUEST_FN_RET_QC)
+ return (BLK_QC_T_NONE);
#endif
}