[LU-11712] Lustre build fails when CONFIG_BLK_DEV_INTEGRITY is unset Created: 28/Nov/18  Updated: 19/Mar/19  Resolved: 04/Jan/19

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.12.0
Fix Version/s: Lustre 2.13.0, Lustre 2.12.1

Type: Bug Priority: Major
Reporter: Chris Horn Assignee: Chris Horn
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Related
is related to LU-11770 preserve kernel API when T10-PI patch... Resolved
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

Similar to LU-11096, the build is broken when CONFIG_BLK_DEV_INTEGRITY is unset. Regression looks to have been introduced by ccf3674c9ca3ed8918c49163007708d1ae5db6f5 LU-10472 osd-ldiskfs: T10PI between RPC and BIO

[  267s] In file included from /home/abuild/rpmbuild/BUILD/cray-lustre-2.11.53.408/lustre/include/lvfs.h:45:0,
[  267s]                  from /home/abuild/rpmbuild/BUILD/cray-lustre-2.11.53.408/lustre/include/obd.h:53,
[  267s]                  from /home/abuild/rpmbuild/BUILD/cray-lustre-2.11.53.408/lustre/fid/fid_request.c:43:
[  267s] /home/abuild/rpmbuild/BUILD/cray-lustre-2.11.53.408/lustre/include/lustre_compat.h: In function 'bdev_integrity_enabled':
[  267s] /home/abuild/rpmbuild/BUILD/cray-lustre-2.11.53.408/lustre/include/lustre_compat.h:761:19: error: dereferencing pointer to incomplete type 'struct blk_integrity'
[  267s]   if (rw == 0 && bi->verify_fn != NULL && 

 



 Comments   
Comment by Gerrit Updater [ 28/Nov/18 ]

Chris Horn (hornc@cray.com) uploaded a new patch: https://review.whamcloud.com/33745
Subject: LU-11712 osd-ldiskfs: Wrap blk integrity with config check
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 0fb39f6ea1c98505fc8fb220e5c6ef154eb612d1

Comment by Gerrit Updater [ 04/Jan/19 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/33745/
Subject: LU-11712 osd-ldiskfs: Wrap blk integrity with config check
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: fd193758bb95e3fbb4cd04e88f0d964f9cb510cf

Comment by Peter Jones [ 04/Jan/19 ]

Landed for 2.13

Comment by Gerrit Updater [ 25/Feb/19 ]

Minh Diep (mdiep@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/34309
Subject: LU-11712 osd-ldiskfs: Wrap blk integrity with config check
Project: fs/lustre-release
Branch: b2_12
Current Patch Set: 1
Commit: 83fff8f749fc66cf1ff19555416575afd37690e6

Comment by Gerrit Updater [ 19/Mar/19 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/34309/
Subject: LU-11712 osd-ldiskfs: Wrap blk integrity with config check
Project: fs/lustre-release
Branch: b2_12
Current Patch Set:
Commit: 64457e6a7c49fc42d9f4a2a6af26e404b7c9b74c

Generated at Sat Feb 10 02:46:17 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.