[LU-9183] Support for linux 4.9 kernels Created: 06/Mar/17  Updated: 02/Aug/18  Resolved: 19/Jul/17

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: Lustre 2.10.1, Lustre 2.11.0

Type: Improvement Priority: Minor
Reporter: Dmitry Eremin (Inactive) Assignee: Dmitry Eremin (Inactive)
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Related
is related to LU-9003 Linux kernel 4.8 adds user_namespace ... Resolved
is related to LU-8560 Support for linux 4.6 kernels Resolved
is related to LU-8056 Support for linux 4.5 kernels Resolved
is related to LU-8661 support for Linux 4.7 kernels Resolved
is related to LU-11062 Backtrace stack printing is broken in... Resolved
is related to LU-9558 Support linux kernel version 4.12 Resolved
Rank (Obsolete): 9223372036854775807

 Description   

This ticket will track the needed changes to enable lustre support with linux kernels 4.9.X



 Comments   
Comment by Gerrit Updater [ 06/Mar/17 ]

Dmitry Eremin (dmitry.eremin@intel.com) uploaded a new patch: https://review.whamcloud.com/25816
Subject: LU-9183 libcfs: handle dump_trace() and related callbacks removal
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: e804fed6dcebd0c6e87fdb6988fcb1b8c96353a8

Comment by Gerrit Updater [ 06/Mar/17 ]

Dmitry Eremin (dmitry.eremin@intel.com) uploaded a new patch: https://review.whamcloud.com/25817
Subject: LU-9183 libcfs: handle get_user_pages() with gup_flags
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: dc8ff9ce96f60c9885401f4d3edef13d63c002fb

Comment by Gerrit Updater [ 06/Mar/17 ]

Dmitry Eremin (dmitry.eremin@intel.com) uploaded a new patch: https://review.whamcloud.com/25818
Subject: LU-9183 libcfs: handle get rid of 'parent' argument of ->d_compare()
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 374ccdd5aac21f6f83a88f0912c26ad6381ebb9b

Comment by Gerrit Updater [ 06/Mar/17 ]

Dmitry Eremin (dmitry.eremin@intel.com) uploaded a new patch: https://review.whamcloud.com/25819
Subject: LU-9183 llite: handle make the string hashes salt the hash
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: e50b350d7bb821de7eae9331718e29822139d6e5

Comment by Gerrit Updater [ 06/Mar/17 ]

Dmitry Eremin (dmitry.eremin@intel.com) uploaded a new patch: https://review.whamcloud.com/25821
Subject: LU-9183 mdc: handle additional argument for posix_acl_valid()
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 032c2d033e00a341a34ae8b513c33e397fc89563

Comment by Gerrit Updater [ 06/Mar/17 ]

Dmitry Eremin (dmitry.eremin@intel.com) uploaded a new patch: https://review.whamcloud.com/25822
Subject: LU-9183 llite: handle removing the offset argument of direct_IO
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: f99512d14dab9d7bc02113e8dfc163f74031130b

Comment by Gerrit Updater [ 06/Mar/17 ]

Dmitry Eremin (dmitry.eremin@intel.com) uploaded a new patch: https://review.whamcloud.com/25826
Subject: LU-9183 llite: handle removal the pos argument of generic_write_sync
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: bd10d7f45ee996148d9c307f9f58b42f15fb57f0

Comment by Gerrit Updater [ 06/Mar/17 ]

Dmitry Eremin (dmitry.eremin@intel.com) uploaded a new patch: https://review.whamcloud.com/25827
Subject: LU-9183 llite: handle flags as argument for inode_operations->rename
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 417dcd2f628c302f115aeed5570167f707abcb2c

Comment by Gerrit Updater [ 06/Mar/17 ]

Dmitry Eremin (dmitry.eremin@intel.com) uploaded a new patch: https://review.whamcloud.com/25838
Subject: LU-9183 ptlrpc: handle changes in struct group_info
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 1d46c6100497a76f95efe7afdabd24c84a6b4a85

Comment by Gerrit Updater [ 06/Mar/17 ]

Dmitry Eremin (dmitry.eremin@intel.com) uploaded a new patch: https://review.whamcloud.com/25840
Subject: LU-9183 llite: handle removal

{get,set,remove}

xattr inode operations
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 9e14a328714203d3ea5585d958d725a1f7602a73

Comment by Bob Glossman (Inactive) [ 06/Mar/17 ]

if I'm not mistaken one of your patches is a dup of LU-9003. this one:

Dmitry Eremin (dmitry.eremin@intel.com) uploaded a new patch: https://review.whamcloud.com/25821
Subject: LU-9183 mdc: handle additional argument for posix_acl_valid()
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 032c2d033e00a341a34ae8b513c33e397fc89563

Comment by Dmitry Eremin (Inactive) [ 06/Mar/17 ]

yes, thanks Bob. I will see those from LU-9003.

Comment by Gerrit Updater [ 08/Mar/17 ]

Dmitry Eremin (dmitry.eremin@intel.com) uploaded a new patch: https://review.whamcloud.com/25892
Subject: LU-9183 ptlrpc: handle posix_acl: xattr representation cleanups
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 036b4a3a8491d3fe36fc6c8e7f1ab185fefbfb1b

Comment by Gerrit Updater [ 08/Mar/17 ]

Dmitry Eremin (dmitry.eremin@intel.com) uploaded a new patch: https://review.whamcloud.com/25893
Subject: LU-9183 llite: remove struct file on stack in ll_setxattr()
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: ace7cdbd60867f02aad22796f30830383c7b663b

Comment by Gerrit Updater [ 13/Mar/17 ]

Dmitry Eremin (dmitry.eremin@intel.com) uploaded a new patch: https://review.whamcloud.com/25965
Subject: LU-9183 llite: add support set_acl method in inode operations
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 139582e277da7ca24efefef964c14eda33b55f1f

Comment by Dmitry Eremin (Inactive) [ 13/Mar/17 ]

With last patch all sanity tests passed with 4.9.13-200.fc25.x86_64 kernel in CLIENTONLY mode.

Comment by Dmitry Eremin (Inactive) [ 13/Mar/17 ]

Doug, you can checkout https://review.whamcloud.com/25965 patch (this branch contain your patch also) and build it with 4.9 kernel. It will works.

Comment by Doug Oucharek (Inactive) [ 14/Mar/17 ]

Thanks Dmitry.  Hopefully I'll get a chance to build and run the fix this week.

Comment by Doug Oucharek (Inactive) [ 15/Mar/17 ]

Just tried to build the above patch against the 4.10 kernel.  Get this error right away:

  CC [M]  /root/lustre-release/libcfs/libcfs/linux/linux-debug.o

/root/lustre-release/libcfs/libcfs/linux/linux-debug.c: In function ‘lbug_with_loc’:

/root/lustre-release/libcfs/libcfs/linux/linux-debug.c:120:9: error: *implicit declaration of function ‘*set_task_state[-Werror=implicit-function-declaration]

         set_task_state(current, TASK_UNINTERRUPTIBLE);

         ^

cc1: all warnings being treated as errors

 

Comment by Bob Glossman (Inactive) [ 15/Mar/17 ]

Doug,
In every kernel version I can find set_task_state() is #define'd in the kernel #Include sched.h If that is no longer true in 4.10 it's a whole new issue.

Comment by Dmitry Eremin (Inactive) [ 16/Mar/17 ]

I have ported to linux 4.9 kernel only.

Comment by Dmitry Eremin (Inactive) [ 17/Mar/17 ]

With latest patch all sanity tests are passed in client only mode on Fedora Core with 4.9.13 kernel.

 

Comment by Doug Oucharek (Inactive) [ 17/Mar/17 ]

I have a VM where I have linux-staging checked out and have built 4.10.0-rc7 and installed it.  I then cloned lustre-release and did a pull of your change (as given above).  I then tried to build Lustre with:

> sh ./autogen.sh

> ./configure --disable-server --with-linux=/root/linux-staging

> make -j4

The make is failing due to issues in linux-debug.c and llite/dcache.c.  Am I doing something wrong here?

Comment by Dmitry Eremin (Inactive) [ 17/Mar/17 ]

yes, please build and install 4.9.13 kernel and all will compile without problems.

Comment by Doug Oucharek (Inactive) [ 17/Mar/17 ]

There is that big a difference between 4.9 and 4.10?  Ok.

Comment by Bob Glossman (Inactive) [ 18/Mar/17 ]

Dmitry,
I can't complete a client build using your patch stack on current fedora 25. build fails in user space code calling readdir_r(). Apparently this call has been declared 'deprecated' and any use of it generates errors.

All the kernel code seems to build ok, but the client build including utils doesn't succeed.

Comment by James A Simmons [ 20/Mar/17 ]

Bob LU-9137 covers readdir_r() deprecation.

Comment by Gerrit Updater [ 19/Apr/17 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/25816/
Subject: LU-9183 libcfs: handle dump_trace() and related callbacks removal
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 70d70c4f541c84adc88c372d670cd3a7fa8bc91f

Comment by Gerrit Updater [ 28/Apr/17 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/25817/
Subject: LU-9183 libcfs: handle get_user_pages() with gup_flags
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: beb733c0f27c28d699700a5aabec41bf573712f8

Comment by Gerrit Updater [ 28/Apr/17 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/25818/
Subject: LU-9183 llite: handle removal of parent argument of ->d_compare()
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 4a50afa42e67244398158a2b68ae68fc0eb68cd7

Comment by Gerrit Updater [ 01/May/17 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/25822/
Subject: LU-9183 llite: handle removal the offset argument of direct_IO
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 337aafa282d0f1127eef8b7ee4f865171f48bc12

Comment by Gerrit Updater [ 05/May/17 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/25827/
Subject: LU-9183 llite: handle flags as argument for inode_operations->rename
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 2b0d3ff9a3b516e240e7fb44f79e2cb4e4a064a7

Comment by Gerrit Updater [ 09/May/17 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/25819/
Subject: LU-9183 llite: handle make the string hashes salt the hash
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 4d1bb7a76ebef4e69f9aaeb28175e62f73afa002

Comment by Gerrit Updater [ 09/May/17 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/25826/
Subject: LU-9183 llite: handle removal the pos argument of generic_write_sync
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: e9a1d3d02df1c444e8f5190ad730817ce2506eea

Comment by Gerrit Updater [ 16/May/17 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/25838/
Subject: LU-9183 ptlrpc: handle changes in struct group_info
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: fa3598d0beca2bc8c5eb4c570210f5298a8613d0

Comment by Gerrit Updater [ 16/May/17 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/25893/
Subject: LU-9183 llite: remove struct file on stack in ll_setxattr()
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 5d32447500107f5abd386400ec9cd8ab8a3d9706

Comment by Gerrit Updater [ 23/May/17 ]

James Simmons (uja.ornl@yahoo.com) uploaded a new patch: https://review.whamcloud.com/27240
Subject: LU-9183 llite: handle xattr with the xattr_handler infrastructure
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: f84266cbc3842760e068278fb0c4b5d42f0680df

Comment by Gerrit Updater [ 24/May/17 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/25892/
Subject: LU-9183 ptlrpc: handle posix_acl: xattr representation cleanups
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: f7df2365bc51a7b2804f9b497cbc6bc340dd9da1

Comment by James A Simmons [ 04/Jun/17 ]

Dmitry you will need https://review.whamcloud.com/#/c/27422 as well for your testing

Comment by Gerrit Updater [ 19/Jul/17 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/27240/
Subject: LU-9183 llite: handle xattr with the xattr_handler infrastructure
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 7c332c2757fb125ffb1c902d5302f7f7dc3c0433

Comment by Gerrit Updater [ 19/Jul/17 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/25965/
Subject: LU-9183 llite: add support set_acl method in inode operations
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: c8d56a664306c3ceb4e598999c41eb72ea46a68f

Comment by Peter Jones [ 19/Jul/17 ]

Landed for 2.11

Comment by Gerrit Updater [ 19/Jul/17 ]

James Simmons (uja.ornl@yahoo.com) uploaded a new patch: https://review.whamcloud.com/28110
Subject: LU-9183 llite: handle xattr with the xattr_handler infrastructure
Project: fs/lustre-release
Branch: b2_10
Current Patch Set: 1
Commit: 2e77631988cec9fc694d9c9bed6cd6172dee90eb

Comment by Gerrit Updater [ 03/Aug/17 ]

John L. Hammond (john.hammond@intel.com) merged in patch https://review.whamcloud.com/28110/
Subject: LU-9183 llite: handle xattr with the xattr_handler infrastructure
Project: fs/lustre-release
Branch: b2_10
Current Patch Set:
Commit: 264ce3d71841c6d84f3d4c0df05b238c42c31476

Comment by Gerrit Updater [ 03/Aug/17 ]

James Simmons (uja.ornl@yahoo.com) uploaded a new patch: https://review.whamcloud.com/28342
Subject: LU-9183 llite: add support set_acl method in inode operations
Project: fs/lustre-release
Branch: b2_10
Current Patch Set: 1
Commit: d00f79fd5dcecffc9c7bc6bbc7dae947e34f28e3

Comment by Gerrit Updater [ 10/Aug/17 ]

John L. Hammond (john.hammond@intel.com) merged in patch https://review.whamcloud.com/28342/
Subject: LU-9183 llite: add support set_acl method in inode operations
Project: fs/lustre-release
Branch: b2_10
Current Patch Set:
Commit: 65fef90864aed68665b6887c91857d9bd891fd97

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