Whamcloud - gitweb
LU-16138 kernel: preserve RHEL8.x server kABI for block integrity 09/48609/2
authorJian Yu <yujian@whamcloud.com>
Tue, 20 Sep 2022 18:29:43 +0000 (11:29 -0700)
committerOleg Drokin <green@whamcloud.com>
Wed, 26 Oct 2022 04:42:00 +0000 (04:42 +0000)
commitf582cd01fba4a32c6861a3be56fb320c69376064
treeb5e3b5425e3f78d1a0a2f73c39a904e3c3c7e7ce
parent9d1805c8b9cc1067b9b3ba186e5e3531112e08a3
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.

Lustre-change: https://review.whamcloud.com/48608
Lustre-commit: ec555c17c0254662c5886188dd2f7c0447fd4aef

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/c/fs/lustre-release/+/48609
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Minh Diep <mdiep@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@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