Skip to content

Commit

Permalink
Version 8.2.5.10
Browse files Browse the repository at this point in the history
- Adapted to backported kernel changes.
- Removed unused (and incorrect) variables from dkms configuration.
- Simplified kernel version build support.
  • Loading branch information
lorelei-sakai committed Jan 24, 2025
1 parent e58f053 commit 2ede754
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 11 deletions.
6 changes: 2 additions & 4 deletions kvdo.spec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
%define spec_release 1
%define kmod_name kvdo
%define kmod_driver_version 8.2.5.2
%define kmod_driver_version 8.2.5.10
%define kmod_rpm_release %{spec_release}
%define kmod_kernel_version 3.10.0-693.el7

Expand Down Expand Up @@ -81,8 +81,6 @@ AUTOINSTALL="yes"
BUILT_MODULE_NAME[0]="kvdo"
BUILT_MODULE_LOCATION[0]="vdo"
DEST_MODULE_LOCATION[0]="/kernel/drivers/block/"
BUILD_DEPENDS[0]=LZ4_COMPRESS
BUILD_DEPENDS[0]=LZ4_DECOMPRESS
STRIP[0]="no"
EOF

Expand All @@ -94,5 +92,5 @@ rm -rf $RPM_BUILD_ROOT
%{_usr}/src/%{kmod_name}-%{version}

%changelog
* Tue Nov 05 2024 - Red Hat VDO Team <[email protected]> - 8.2.5.2-1
* Thu Jan 23 2025 - Red Hat VDO Team <[email protected]> - 8.2.5.10-1
- See https://github.com/dm-vdo/kvdo.git
2 changes: 1 addition & 1 deletion vdo/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VDO_VERSION = 8.2.5.2
VDO_VERSION = 8.2.5.10

SOURCES = $(notdir $(wildcard $(src)/*.c))
OBJECTS = $(SOURCES:%.c=%.o)
Expand Down
7 changes: 3 additions & 4 deletions vdo/dm-vdo-target.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ static void vdo_io_hints(struct dm_target *ti, struct queue_limits *limits)
limits->physical_block_size = VDO_BLOCK_SIZE;

/* The minimum io size for random io */
blk_limits_io_min(limits, VDO_BLOCK_SIZE);
limits->io_min = VDO_BLOCK_SIZE;
/* The optimal io size for streamed/sequential io */
blk_limits_io_opt(limits, VDO_BLOCK_SIZE);
limits->io_opt = VDO_BLOCK_SIZE;

/*
* Sets the maximum discard size that will be passed into VDO. This
Expand All @@ -96,8 +96,7 @@ static void vdo_io_hints(struct dm_target *ti, struct queue_limits *limits)
*/
#ifndef VDO_UPSTREAM
#undef VDO_USE_ALTERNATE
#if (RHEL_RELEASE_CODE < RHEL_RELEASE_VERSION(9, 6)) || \
((RHEL_RELEASE_CODE == RHEL_RELEASE_VERSION(9, 6)) && (RHEL_RELEASE_EXTRA < 522))
#if (RHEL_RELEASE_CODE < RHEL_RELEASE_VERSION(9, 6))
#define VDO_USE_ALTERNATE
#endif /* RHEL_RELEASE_CODE */
#endif /* VDO_UPSTREAM */
Expand Down
3 changes: 1 addition & 2 deletions vdo/io-factory.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@
#undef VDO_USE_ALTERNATE_2
#undef VDO_USE_ALTERNATE_3
#ifdef RHEL_RELEASE_CODE
#if (RHEL_RELEASE_CODE < RHEL_RELEASE_VERSION(9, 5)) || \
((RHEL_RELEASE_CODE == RHEL_RELEASE_VERSION(9, 5)) && (RHEL_RELEASE_EXTRA < 446))
#if (RHEL_RELEASE_CODE < RHEL_RELEASE_VERSION(9, 5))
#define VDO_USE_ALTERNATE
#define VDO_USE_ALTERNATE_2
#if (RHEL_RELEASE_CODE < RHEL_RELEASE_VERSION(9, 4))
Expand Down

0 comments on commit 2ede754

Please sign in to comment.