Whamcloud - gitweb
LU-16138 kernel: preserve RHEL8.x server kABI for block integrity
authorJian Yu <yujian@whamcloud.com>
Wed, 7 Sep 2022 03:41:10 +0000 (20:41 -0700)
committerAndreas Dilger <adilger@whamcloud.com>
Fri, 9 Sep 2022 01:33:57 +0000 (01:33 +0000)
commit053161c671cbaa38909f6ae2b9d89d824bfe49a8
tree046285888c24601b3d833bbe93702977f273a8ca
parent1b9434433ba87005a9611d3a95769a0f91bb9b68
LU-16138 kernel: preserve RHEL8.x server kABI for block integrity

Currently there are two kernel patches supporting SCSI T10-PI feature
left in the RHEL8.x series:

- block-integrity-allow-optional-integrity-functions-rhel8.patch
- block-pass-bio-into-integrity_processing_fn-rhel8.patch

The changes in the patches modified "struct bio_integrity_payload"
and "struct blk_integrity_iter", which caused kABI breakage.

This patch fixes the patches to preserve kABI by using
RH-supplied compatibility macros.

Test-Parameters: trivial fstype=ldiskfs clientdistro=el8.5 serverdistro=el8.5
Test-Parameters: trivial fstype=ldiskfs clientdistro=el8.6 serverdistro=el8.6

Change-Id: If547e1cd4ae4ff1affd315bbfefaeeff4f1dea81
Signed-off-by: Jian Yu <yujian@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/48445
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/kernel_patches/patches/block-integrity-allow-optional-integrity-functions-rhel8.patch
lustre/kernel_patches/patches/block-pass-bio-into-integrity_processing_fn-rhel8.patch