Whamcloud - gitweb
LU-15262 osd: bio_integrity_prep_fn return value processing
authorAlexey Lyashkov <alexey.lyashkov@hpe.com>
Fri, 16 Sep 2022 20:41:42 +0000 (13:41 -0700)
committerAndreas Dilger <adilger@whamcloud.com>
Fri, 23 Sep 2022 16:20:25 +0000 (16:20 +0000)
commite6972022cf2735b33c376de56acf627ae503bae7
tree719b8445ecf14a16a1e16c01fee2bc2e3b9aa20b
parent9ae5ec06422a0ac44348748d6d57227a49754f54
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.

Lustre-change: https://review.whamcloud.com/45646
Lustre-commit: 41c813d14ec9b353f9cf5ac82638996dcb5273d7

HPe-bug-id: LUS-10443
Signed-off-by: Alexey Lyashkov <alexey.lyashkov@hpe.com>
Change-Id: I973aa8ccae024157ad863d26afc7b1264a5c7149
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>
Reviewed-on: https://review.whamcloud.com/48582
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Artem Blagodarenko <ablagodarenko@ddn.com>
lustre/autoconf/lustre-core.m4
lustre/osd-ldiskfs/osd_internal.h