Skip to content

Commit

Permalink
Version 8.2.5.2
Browse files Browse the repository at this point in the history
- Fixed discards to use correct size limit.
- Removed spurious metadata assertion.
  • Loading branch information
lorelei-sakai committed Nov 6, 2024
1 parent 7c54552 commit e58f053
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 8 deletions.
4 changes: 2 additions & 2 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.4.15
%define kmod_driver_version 8.2.5.2
%define kmod_rpm_release %{spec_release}
%define kmod_kernel_version 3.10.0-693.el7

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

%changelog
* Mon Jul 29 2024 - Red Hat VDO Team <[email protected]> - 8.2.4.15-1
* Tue Nov 05 2024 - Red Hat VDO Team <[email protected]> - 8.2.5.2-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.4.15
VDO_VERSION = 8.2.5.2

SOURCES = $(notdir $(wildcard $(src)/*.c))
OBJECTS = $(SOURCES:%.c=%.o)
Expand Down
20 changes: 17 additions & 3 deletions vdo/dm-vdo-target.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
*/

#include <linux/module.h>
#ifndef VDO_UPSTREAM
#include <linux/version.h>
#endif /* VDO_UPSTREAM */

#include "bio.h"
#include "constants.h"
Expand Down Expand Up @@ -91,9 +94,20 @@ static void vdo_io_hints(struct dm_target *ti, struct queue_limits *limits)
* determine whether to pass down discards. The block layer splits
* large discards on this boundary when this is set.
*/
limits->max_discard_sectors = (vdo->device_config->max_discard_blocks
* VDO_SECTORS_PER_BLOCK);

#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))
#define VDO_USE_ALTERNATE
#endif /* RHEL_RELEASE_CODE */
#endif /* VDO_UPSTREAM */
#ifdef VDO_USE_ALTERNATE
limits->max_discard_sectors =
(vdo->device_config->max_discard_blocks * VDO_SECTORS_PER_BLOCK);
#else
limits->max_hw_discard_sectors =
(vdo->device_config->max_discard_blocks * VDO_SECTORS_PER_BLOCK);
#endif
/*
* Force discards to not begin or end with a partial block by stating
* the granularity is 4k.
Expand Down
2 changes: 0 additions & 2 deletions vdo/io-submitter.c
Original file line number Diff line number Diff line change
Expand Up @@ -393,8 +393,6 @@ void vdo_submit_metadata_io(struct vio *vio,
ASSERT_LOG_ONLY(!code->quiescent,
"I/O not allowed in state %s",
code->name);
ASSERT_LOG_ONLY(vio->bio->bi_next == NULL,
"metadata bio has no next bio");

vdo_reset_completion(completion);
completion->error_handler = error_handler;
Expand Down

0 comments on commit e58f053

Please sign in to comment.