Whamcloud - gitweb
LU-15262 osd: bio_integrity_prep_fn return value processing 46/45646/3
authorAlexey Lyashkov <alexey.lyashkov@hpe.com>
Mon, 22 Nov 2021 13:32:23 +0000 (16:32 +0300)
committerOleg Drokin <green@whamcloud.com>
Thu, 23 Dec 2021 07:16:35 +0000 (07:16 +0000)
commit41c813d14ec9b353f9cf5ac82638996dcb5273d7
treea2fa6b45c55c93e1915968a181f15f9f98f1fa1e
parentda5af1b7657b2ad311c42fc845856e6ea86aad00
LU-15262 osd: bio_integrity_prep_fn return value processing

There is osd_bio_integrity_handle() fn in lustre/osd-ldiskfs/osd_io.c
It checks the returned code of bio_integrity_prep_fn() but between
mainstream Linux 4.12 and 4.13 kernel integrity API has changed and
in 4.13+ (as well as for any RHEL8 including first beta)

bio_integrity_prep() returns boolean true on success.

HPe-bug-id: LUS-10443
Signed-off-by: Alexey Lyashkov <alexey.lyashkov@hpe.com>
Change-Id: I973aa8ccae024157ad863d26afc7b1264a5c7149
Reviewed-on: https://review.whamcloud.com/45646
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Artem Blagodarenko <artem.blagodarenko@hpe.com>
Reviewed-by: Li Dongyang <dongyangli@ddn.com>
Reviewed-by: Andrew Perepechko <andrew.perepechko@hpe.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/autoconf/lustre-core.m4
lustre/osd-ldiskfs/osd_internal.h