File tree Expand file tree Collapse file tree 3 files changed +12
-4
lines changed Expand file tree Collapse file tree 3 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -41,14 +41,14 @@ jobs:
41
41
build-os : ubuntu-22.04
42
42
kernel-type : centos-rpm
43
43
kernel-source : https://vault.centos.org/8.5.2111/BaseOS/Source/SPackages/kernel-4.18.0-348.7.1.el8_5.src.rpm
44
- - name : CentOS 9.3 [5.14.0]
45
- build-os : ubuntu-22.04
46
- kernel-type : centos-tar
47
- kernel-source : https://files.bwlp.ks.uni-freiburg.de/stuff/centos/linux-5.14.0-362.18.1.el9_3.tar.xz
48
44
- name : CentOS 9.4 [5.14.0]
49
45
build-os : ubuntu-22.04
50
46
kernel-type : centos-tar
51
47
kernel-source : https://files.bwlp.ks.uni-freiburg.de/stuff/centos/linux-5.14.0-427.el9.tar.xz
48
+ - name : CentOS 9.5 [5.14.0]
49
+ build-os : ubuntu-22.04
50
+ kernel-type : centos-tar
51
+ kernel-source : https://files.bwlp.ks.uni-freiburg.de/stuff/centos/linux-5.14.0-432.el9.tar.xz
52
52
name : Build xloop ${{ matrix.config.name }}
53
53
runs-on : ${{ matrix.config.build-os }}
54
54
steps :
Original file line number Diff line number Diff line change @@ -1827,7 +1827,11 @@ static int xloop_add(int i)
1827
1827
}
1828
1828
xlo -> xlo_queue = xlo -> xlo_disk -> queue ;
1829
1829
1830
+ #if LINUX_VERSION_CODE >= KERNEL_VERSION (6 , 8 , 0 )
1831
+ blk_queue_max_hw_sectors (xlo -> xlo_queue , BLK_DEF_MAX_SECTORS_CAP );
1832
+ #else
1830
1833
blk_queue_max_hw_sectors (xlo -> xlo_queue , BLK_DEF_MAX_SECTORS );
1834
+ #endif
1831
1835
1832
1836
/*
1833
1837
* By default, we do buffer IO, so it doesn't make sense to enable
Original file line number Diff line number Diff line change @@ -2092,7 +2092,11 @@ static int xloop_add(int i)
2092
2092
}
2093
2093
xlo -> xlo_queue = xlo -> xlo_disk -> queue ;
2094
2094
2095
+ #if RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION (9 , 5 )
2096
+ blk_queue_max_hw_sectors (xlo -> xlo_queue , BLK_DEF_MAX_SECTORS_CAP );
2097
+ #else
2095
2098
blk_queue_max_hw_sectors (xlo -> xlo_queue , BLK_DEF_MAX_SECTORS );
2099
+ #endif
2096
2100
2097
2101
/*
2098
2102
* By default, we do buffer IO, so it doesn't make sense to enable
You can’t perform that action at this time.
0 commit comments