[LU-10560] Fixes for 4.14 kernel Created: 24/Jan/18  Updated: 01/May/19  Resolved: 12/May/18

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

Type: Bug Priority: Minor
Reporter: Amir Shehata (Inactive) Assignee: James A Simmons
Resolution: Fixed Votes: 0
Labels: llnl

Issue Links:
Related
is related to LU-10805 fixes for 4.15 kernel Resolved
is related to LU-10997 Ubuntu 18 support Resolved
is related to LU-10934 integrate statx() API with Lustre Resolved
is related to LU-11132 LC_BI_BDEV: configuration problem for... Resolved
is related to LU-9558 Support linux kernel version 4.12 Resolved
is related to LU-11310 support for SLES 15 Resolved
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

While Mike Marciniszyn was testing the TID-RDMA he tried to build Lustre against upstream. And ran into this build error:

make[3]: Entering directory `/nfs/sc/disks/fabric_work/mmarciniszyn/repos/wfr/wf                                                                                                                                                             r-linux-devel'
  CC [M]  /nfs/sc/disks/fabric_work/mmarciniszyn/repos/lustre-release/libcfs/libcfs/linux/linux-tracefile.o
  CC [M]  /nfs/sc/disks/fabric_work/mmarciniszyn/repos/lustre-release/libcfs/libcfs/linux/linux-debug.o
In file included from /nfs/sc/disks/fabric_work/mmarciniszyn/repos/lustre-release/libcfs/libcfs/linux/linux-debug.c:50:0:
./arch/x86/include/asm/uaccess.h: In function ‘set_fs’:
./arch/x86/include/asm/uaccess.h:31:9: error: dereferencing pointer to incomplete type
  current->thread.addr_limit = fs; 


 Comments   
Comment by Gerrit Updater [ 24/Jan/18 ]

Andreas Dilger (andreas.dilger@intel.com) uploaded a new patch: https://review.whamcloud.com/31007
Subject: LU-10560 libcfs: remove extra headers from linux-debug.c
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: a8aeb8cfb5e074530e044a1315de1e151061fa0e

Comment by Amir Shehata (Inactive) [ 30/Jan/18 ]

Some more identified issue with Lustre compile against upstream kernel:

Some additional portability issues:

  • GFP_TEMPORARY went away
  • wait_queue_t changes to wait_queue_entry_t
  • gss underpinnings changes (disabled gss)
  • asm/uaccess deleted (as with abvoe patch)
    o lustre/llite/llite_mmap.c
    o lustre/llite/rw26.c
Comment by James A Simmons [ 30/Jan/18 ]

I have a patch for the wait_queue_t changes. Just haven't pushed them yet. How new of a kernel do you need?

Comment by Mike Marciniszyn (Inactive) [ 31/Jan/18 ]

I have patches for all the above issues as well.

An additional issue is with libcfs. vfs_write() is not exported in some cases.

I have a patch for that probes for kernel_write()

Comment by Gerrit Updater [ 02/Feb/18 ]

Mike Marciniszyn (mike.marciniszyn@intel.com) uploaded a new patch: https://review.whamcloud.com/31153
Subject: LU-10560 lustre_compat: handle rename to wait_queue_entry_t
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: c947398bd9bdc0dc676ac6296f02545379050cc5

Comment by Gerrit Updater [ 02/Feb/18 ]

Mike Marciniszyn (mike.marciniszyn@intel.com) uploaded a new patch: https://review.whamcloud.com/31154
Subject: LU-10560 lustre_compat: Use kernel_write when no vfs_write
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 258b5a7e3b55eafac66d94d11aed97aba59d5807

Comment by Gerrit Updater [ 06/Feb/18 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/31007/
Subject: LU-10560 libcfs: remove extra headers from linux-debug.c
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: a4ac52a7d08540802f899b115c74f7b9cdd0c5d7

Comment by Gerrit Updater [ 09/Feb/18 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/31150/
Subject: LU-10560 llite: remove extra headers from llite_mmap.c
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: aae9a90ce7c967c208c482e0ef500c5115017388

Comment by Gerrit Updater [ 09/Feb/18 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/31151/
Subject: LU-10560 llite: remove extra headers from rw26.c
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: b8e87b5a1c17048a760ce9809fde904ca6dc449d

Comment by Gerrit Updater [ 22/Feb/18 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/31152/
Subject: LU-10560 lustre_compat: Convert GFP_TEMPORARY to GFP_KERNEL
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: f01bed03905d424fab81bee84a7b622f141e4f79

Comment by Gerrit Updater [ 22/Feb/18 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/31153/
Subject: LU-10560 libcfs: handle rename to wait_queue_entry_t
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 9b7ca14430edf84f8c031b1489b3c0d2fb617535

Comment by Olaf Faaland [ 28/Feb/18 ]

I see the LTS label.  Will this ticket also be used to track the backports?

I added the llnl label because we have an aarch64 cluster for testing and are attempting to build and use the Lustre 2.10 client there.  Some weeks ago RHEL for arm used a 4.11-based kernel, and Lustre 2.10 client built with minor adjustments.   Since then, RHEL moved to a 4.14-based kernel and much more change is required.

Comment by James A Simmons [ 01/Mar/18 ]

Seriously. I will be seeing this update soon. I guess I need to resolve the last patch.

Comment by James A Simmons [ 16/Mar/18 ]

Any chance to land the last patch to make this work complete?

 

Comment by Gerrit Updater [ 23/Mar/18 ]

Li Dongyang (dongyangli@ddn.com) uploaded a new patch: https://review.whamcloud.com/31746
Subject: LU-10560 mdt: remove extra headers from mdt_identity.c
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: c129c4882f210050db8e9a57fbb96c9a917fb8d7

Comment by Gerrit Updater [ 09/Apr/18 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/31154/
Subject: LU-10560 libcfs: Use kernel_write when appropriate
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: b9a32054600a8d63948cced361191aa6ae7ea8f2

Comment by Gerrit Updater [ 09/Apr/18 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/31746/
Subject: LU-10560 mdt: remove extra headers from mdt_identity.c
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 9ade609b73d9b8ac750dec874a7209b07bcb86cb

Comment by Gerrit Updater [ 10/Apr/18 ]

Minh Diep (minh.diep@intel.com) uploaded a new patch: https://review.whamcloud.com/31923
Subject: LU-10560 libcfs: remove extra headers from linux-debug.c
Project: fs/lustre-release
Branch: b2_10
Current Patch Set: 1
Commit: 19158ff6d97668830353388b334eb23da986f8fb

Comment by Gerrit Updater [ 10/Apr/18 ]

Minh Diep (minh.diep@intel.com) uploaded a new patch: https://review.whamcloud.com/31924
Subject: LU-10560 llite: remove extra headers from llite_mmap.c
Project: fs/lustre-release
Branch: b2_10
Current Patch Set: 1
Commit: 480ba0e10974d1e6a6037c67069fe8f528598b1b

Comment by Gerrit Updater [ 10/Apr/18 ]

Minh Diep (minh.diep@intel.com) uploaded a new patch: https://review.whamcloud.com/31925
Subject: LU-10560 llite: remove extra headers from rw26.c
Project: fs/lustre-release
Branch: b2_10
Current Patch Set: 1
Commit: ff9ab6a368ce3bf2187b047051b7eefc7a997ae0

Comment by Gerrit Updater [ 10/Apr/18 ]

Minh Diep (minh.diep@intel.com) uploaded a new patch: https://review.whamcloud.com/31926
Subject: LU-10560 lustre_compat: Convert GFP_TEMPORARY to GFP_KERNEL
Project: fs/lustre-release
Branch: b2_10
Current Patch Set: 1
Commit: e22e1cd2631e3c4a85577d001d5b0571fe8f77eb

Comment by Gerrit Updater [ 10/Apr/18 ]

Minh Diep (minh.diep@intel.com) uploaded a new patch: https://review.whamcloud.com/31927
Subject: LU-10560 libcfs: handle rename to wait_queue_entry_t
Project: fs/lustre-release
Branch: b2_10
Current Patch Set: 1
Commit: 13e2315bf370f67845770a34c658a83ab26a9720

Comment by Gerrit Updater [ 10/Apr/18 ]

Minh Diep (minh.diep@intel.com) uploaded a new patch: https://review.whamcloud.com/31928
Subject: LU-10560 libcfs: Use kernel_write when appropriate
Project: fs/lustre-release
Branch: b2_10
Current Patch Set: 1
Commit: 94d96caa0986d6ff539d75496f3443f159f32313

Comment by Gerrit Updater [ 11/Apr/18 ]

Mike Marciniszyn (mike.marciniszyn@intel.com) uploaded a new patch: https://review.whamcloud.com/31948
Subject: LU-10560 libcfs: Fix inconsistent const for cfg_kernel_write()
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 874d454c7aeafb849862778dc6f163cc9c1938d7

Comment by Peter Jones [ 11/Apr/18 ]

mmarcini is this now the last patch or are there still more to come?

Comment by Mike Marciniszyn (Inactive) [ 11/Apr/18 ]

I noted that that the error in the backport in https://review.whamcloud.com/#/c/31928 and that is probably due to the const discrepancy.

This is the only issue I have with 4.14.x kernel and it as it is working fine for our testing.

There are issues with 4.15.x, but i haven't gotten to those yet.   Some notables:

  • timer API changes
  • const nits

My objective here is to do some Lustre testing with our upstream work for OPA (lnet_selftest, lnet_ping)

Comment by Peter Jones [ 11/Apr/18 ]

Ok. 4.15 work is happening under LU-10805 but it sounds like this last change should be enough to support 4.14 - thanks!

Comment by Gerrit Updater [ 19/Apr/18 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/31948/
Subject: LU-10560 libcfs: Fix inconsistent declaration for cfs_kernel_write()
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: f19699186d29ba8561d67b4457e98c018ea26317

Comment by James A Simmons [ 19/Apr/18 ]

We have a patch for ldiskfs under this ticket so don't close.

Comment by Gerrit Updater [ 03/May/18 ]

Yang Sheng (yang.sheng@intel.com) uploaded a new patch: https://review.whamcloud.com/32268
Subject: LU-10560 llite: remove assigning f_version in ll_readir.
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 1de9c46e2dbb64cf788f40e52bf829b334b9da0c

Comment by Gerrit Updater [ 03/May/18 ]

John L. Hammond (john.hammond@intel.com) merged in patch https://review.whamcloud.com/31923/
Subject: LU-10560 libcfs: remove extra headers from linux-debug.c
Project: fs/lustre-release
Branch: b2_10
Current Patch Set:
Commit: 9892581f02a9602edf345edb12370d92207ffc87

Comment by Gerrit Updater [ 03/May/18 ]

John L. Hammond (john.hammond@intel.com) merged in patch https://review.whamcloud.com/31924/
Subject: LU-10560 llite: remove extra headers from llite_mmap.c
Project: fs/lustre-release
Branch: b2_10
Current Patch Set:
Commit: 8e718fde2f35312c624828c375462bddf67854a3

Comment by Gerrit Updater [ 03/May/18 ]

John L. Hammond (john.hammond@intel.com) merged in patch https://review.whamcloud.com/31925/
Subject: LU-10560 llite: remove extra headers from rw26.c
Project: fs/lustre-release
Branch: b2_10
Current Patch Set:
Commit: 2639e47aef9dfa60a9003841d1fe771f1acf900a

Comment by Gerrit Updater [ 03/May/18 ]

John L. Hammond (john.hammond@intel.com) merged in patch https://review.whamcloud.com/31926/
Subject: LU-10560 lustre_compat: Convert GFP_TEMPORARY to GFP_KERNEL
Project: fs/lustre-release
Branch: b2_10
Current Patch Set:
Commit: 44af4b737ca4dba3bb93cfe6d43f4bab276f5404

Comment by Gerrit Updater [ 12/May/18 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/31975/
Subject: LU-10560 osd: bi_bdev is replaced by bi_disk
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 8036c167789ec84488430f8ddeb726b5b11b373c

Comment by Gerrit Updater [ 12/May/18 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/32268/
Subject: LU-10560 llite: remove assigning f_version in ll_readir.
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: afd9e3c298ec0149c908026617b06bae075f5760

Comment by Peter Jones [ 12/May/18 ]

Landed for 2.12

Comment by Gerrit Updater [ 05/Jun/18 ]

Li Dongyang (dongyangli@ddn.com) uploaded a new patch: https://review.whamcloud.com/32621
Subject: LU-10560 osd: bio_integrity_enabled was removed
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: d4dc2c9ee0b6260c00e241b6d373b3d98285cd45

Comment by Gerrit Updater [ 14/Jun/18 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/32621/
Subject: LU-10560 osd: bio_integrity_enabled was removed
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: eee33ef0f07f3f2f5953953416d5d505088ae9a9

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