[LU-6260] more support for 3.16 linux kernel Created: 19/Feb/15  Updated: 15/Jan/16  Resolved: 30/Jul/15

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

Type: Improvement Priority: Minor
Reporter: Bob Glossman (Inactive) Assignee: Bob Glossman (Inactive)
Resolution: Fixed Votes: 0
Labels: patch
Environment:

3.16 kernel


Issue Links:
Blocker
is blocked by LU-6567 sanity test_69: test failed to respon... Resolved
Related
is related to LU-7382 (vvp_io.c:573:vvp_io_update_iov()) AS... Reopened
is related to LU-6215 Sync Lustre external tree with lustre... Resolved
is related to LU-5322 support for 3.16 linux kernel Resolved
is related to LU-7052 iovec created with iov_iter_get_pages... Resolved
Rank (Obsolete): 17548

 Description   

earlier LU-5322 was closed out to capture those kernel support fixes that landed for 2.7.0
There are still outstanding issues that we don't have fixes for yet. Those will be done in later lustre versions, so creating this new ticket to track them.

One known issue first mentioned 15/Sep/14:

With the switch to 3.16 now seeing new build failures, even in client only builds. example errors:

  CC [M]  /home/bogl/lustre-release/lustre/llite/llite_capa.o
  CC [M]  /home/bogl/lustre-release/lustre/llite/rw26.o
/home/bogl/lustre-release/lustre/llite/rw26.c:700:9: error: initialization from incompatible pointer type [-Werror]
         .direct_IO      = ll_direct_IO_26,
         ^
/home/bogl/lustre-release/lustre/llite/rw26.c:700:9: error: (near initialization for ‘ll_aops.direct_IO’) [-Werror]
cc1: all warnings being treated as errors
make[6]: *** [/home/bogl/lustre-release/lustre/llite/rw26.o] Error 1
make[5]: *** [/home/bogl/lustre-release/lustre/llite] Error 2
make[4]: *** [/home/bogl/lustre-release/lustre] Error 2
make[3]: *** [_module_/home/bogl/lustre-release] Error 2
make[3]: Leaving directory `/usr/src/kernels/3.16.2-200.fc20.x86_64'
make[2]: *** [modules] Error 2
make[2]: Leaving directory `/home/bogl/lustre-release'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/bogl/lustre-release'
make: *** [all] Error 2

Recent comment in LU-5322 said this fix is still TBD.



 Comments   
Comment by Blake Caldwell [ 16/Apr/15 ]

I recently ran Lustre with ldiskfs on Linux 3.18. The changes that were necessary are part of my github repo here:
https://github.com/bacaldwell/lustre

Most of the changes were rebased upstream Linux patches, which are referenced in my commits. The specific issue mentioned in this ticket was addressed by this commit:
https://github.com/bacaldwell/lustre/commit/663d8b7b2a6e42e0fba6b587f718732b1f756bd7#diff-8684eb9ba8f6ecca0e513931aa6bcd19R369

It needs quite a bit of cleanup, but hopefully will be a useful reference for this work.

Comment by Gerrit Updater [ 04/May/15 ]

James Simmons (uja.ornl@yahoo.com) uploaded a new patch: http://review.whamcloud.com/14665
Subject: LU-6260 llite: add support for direct IO api changes
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 396f0bd17ad097a06cbac81db46461074d7d8a41

Comment by James A Simmons [ 05/May/15 ]

Also in the 3.16 kernel we see the introduction of read_iter and write_iter. These later go on to replace the aio_write and aio_read functions. This change leads to the replacement of the generic_file_aio_XXX functions with the generic_file_XXX_iter functions in vvp_io.c.

Comment by Gerrit Updater [ 28/May/15 ]

James Simmons (uja.ornl@yahoo.com) uploaded a new patch: http://review.whamcloud.com/15028
Subject: LU-6260 llite: add support for new iter functionality
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 302db32ec89b8a79343f01cebc309289ca6044a3

Comment by Gerrit Updater [ 28/May/15 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/14665/
Subject: LU-6260 llite: add support for direct IO api changes
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 98883bd3e2cc48a3a5674ce140ad74bece37df05

Comment by Gerrit Updater [ 30/Jul/15 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/15028/
Subject: LU-6260 llite: add support for new iter functionality
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 044503492c8e2e4cc519c34f282744d3d941a759

Comment by Peter Jones [ 30/Jul/15 ]

So is it ok to mark this ticket as resolved now?

Comment by James A Simmons [ 30/Jul/15 ]

Yes this work is finally done.

Comment by Peter Jones [ 30/Jul/15 ]

Great! Thanks James

Generated at Sat Feb 10 01:58:40 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.