import kmod-redhat-oracleasm-2.0.8-14.el8

This commit is contained in:
CentOS Sources 2022-09-27 17:01:55 -04:00 committed by Stepan Oksanichenko
parent 54024c186e
commit be521c5482
2 changed files with 33 additions and 3 deletions

View File

@ -0,0 +1,19 @@
Commit kernel-4.18.0-361.el8~13^2~6 ("bdi: replace
BDI_CAP_NO_{WRITEBACK,ACCT_DIRTY} with a single flag", upstream commit
f56753ac2a90) has changed the semantics of bdi->capabilities without
any oracleasm-tangible kABI effect (by virtue of being a change of macro
values; the accompying function change has not have any effect as oracleasm
kmod doesn't utilise any of them). Update the capabilities value to a new one.
Index: oracleasm-redhat-2.0.8/drivers/block/oracleasm/driver.c
===================================================================
--- oracleasm-redhat-2.0.8.orig/drivers/block/oracleasm/driver.c 2022-02-21 22:04:43.375816985 +0100
+++ oracleasm-redhat-2.0.8/drivers/block/oracleasm/driver.c 2022-02-21 22:05:36.277381843 +0100
@@ -726,7 +726,7 @@
struct backing_dev_info *bdi = inode_to_bdi(inode);
bdi->ra_pages = 0; /* No readahead */
- bdi->capabilities = BDI_CAP_NO_ACCT_DIRTY | BDI_CAP_NO_WRITEBACK;
+ bdi->capabilities = 0;
BUG_ON(atomic_read(&d->d_ios) != 0);
BUG_ON(d->d_live);

View File

@ -3,9 +3,9 @@
%define kmod_rpm_name kmod-redhat-oracleasm
%define kmod_driver_version 2.0.8
%define kmod_driver_epoch 8
%define kmod_rpm_release 12
%define kmod_kernel_version 4.18.0-321.el8
%define kmod_kernel_version_min 4.18.0-321.el8
%define kmod_rpm_release 14
%define kmod_kernel_version 4.18.0-413.el8
%define kmod_kernel_version_min 4.18.0-413.el8
%define kmod_kernel_version_dep 4.18.0
%define kmod_kbuild_dir drivers/block/oracleasm
%define kmod_install_path extra/kmod-redhat-oracleasm
@ -27,6 +27,7 @@ Patch0: 0000-Makefile-config-opts.patch
#Patch1: 0001-oracleasm-driver-replace-fs_context-with-mount_pseud.patch
Patch2: 0002-oracleasm-driver-make-bio_for_each_segment_all-worki.patch
Patch3: 0003-oracleasm-copy-rhel8-s-bio_map_user_iov.patch
Patch4: 0004-update-bdi-writeback-acct_dirty-flags.patch
%define findpat %( echo "%""P" )
%define __find_requires /usr/lib/rpm/redhat/find-requires.ksyms
@ -64,6 +65,8 @@ Requires: kernel >= 4.18.0-240.el8
# if there are multiple kmods for the same driver from different vendors,
# they should conflict with each other.
Conflicts: kmod-%{kmod_name}
Obsoletes: %{name}-kernel_4_18_0_240
Obsoletes: %{name}-kernel_4_18_0_240_14_1
%description
oracleasm kernel module
@ -151,6 +154,7 @@ exit 0
#%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
set -- *
mkdir source
mv "$@" source/
@ -213,6 +217,13 @@ install -m 644 -D source/greylist.txt $RPM_BUILD_ROOT/usr/share/doc/%{kmod_rpm_n
rm -rf $RPM_BUILD_ROOT
%changelog
* Mon Jul 18 2022 Eugene Syromiatnikov <esyr@redhat.com> 2.0.8-14
- Add Obsoletes: tag for old kernel-specific sub-packages (#1974732).
* Mon Feb 21 2022 Eugene Syromiatnikov <esyr@redhat.com> 2.0.8-13
- Update bdi->capabilities assignment due to change in the value semantics
(#2060479).
* Tue Jul 13 2021 Eugene Syromiatnikov <esyr@redhat.com> 2.0.8-12
- Rebuild against kernel-4.18.0-321.el8.