[LU-11132] LC_BI_BDEV: configuration problem for 2.6 kernel Created: 09/Jul/18  Updated: 23/Jul/18  Resolved: 23/Jul/18

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

Type: Bug Priority: Minor
Reporter: Vladimir Saveliev Assignee: Vladimir Saveliev
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Related
is related to LU-10560 Fixes for 4.14 kernel Resolved
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

struct bio is located in linux/bio.h in 2.6 kernel serie. LC_BI_BDEV
uses linux/blk_types.h. That makes the configuration check to fail for those kernels
and breaks compiling.



 Comments   
Comment by Gerrit Updater [ 09/Jul/18 ]

Vladimir Saveliev (c17830@cray.com) uploaded a new patch: https://review.whamcloud.com/32799
Subject: LU-11132 compile: fix LC_BI_BDEV for old kernels
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 121e883c357cbf926a0a4e2241c322ab23b5d9a8

Comment by Andreas Dilger [ 23/Jul/18 ]

This was introduced by:

commit eee33ef0f07f3f2f5953953416d5d505088ae9a9
Author:     Li Dongyang <dongyangli@ddn.com>
AuthorDate: Tue Jun 5 11:40:43 2018 +1000

    LU-10560 osd: bio_integrity_enabled was removed
    
    T10PI bio support patches used bio_integrity_enabled
    which was no longer available in recent kernels.
    Fix this so we can have server support back on 4.13+
    kernels.
    
    Change-Id: I32eeea244ad599c7af2d551b9b2b173e982d07d3
Comment by Gerrit Updater [ 23/Jul/18 ]

Andreas Dilger (adilger@whamcloud.com) merged in patch https://review.whamcloud.com/32799/
Subject: LU-11132 compile: fix LC_BI_BDEV for old kernels
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 63ac7eecf5ad61e311c3c963a2cb12b1045f72e2

Comment by Andreas Dilger [ 23/Jul/18 ]

Landed for 2.12.

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