summaryrefslogtreecommitdiffstats
path: root/src/kernel/xloop_main_6.6.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/xloop_main_6.6.c')
-rw-r--r--src/kernel/xloop_main_6.6.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/kernel/xloop_main_6.6.c b/src/kernel/xloop_main_6.6.c
index 871ce7b..d5c7f16 100644
--- a/src/kernel/xloop_main_6.6.c
+++ b/src/kernel/xloop_main_6.6.c
@@ -1827,7 +1827,11 @@ static int xloop_add(int i)
}
xlo->xlo_queue = xlo->xlo_disk->queue;
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 8, 0)
+ blk_queue_max_hw_sectors(xlo->xlo_queue, BLK_DEF_MAX_SECTORS_CAP);
+#else
blk_queue_max_hw_sectors(xlo->xlo_queue, BLK_DEF_MAX_SECTORS);
+#endif
/*
* By default, we do buffer IO, so it doesn't make sense to enable