[LU-2850] Client support for upstream 3.8 kernel Created: 21/Feb/13  Updated: 02/Jun/14  Resolved: 11/Jul/13

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.5.0
Fix Version/s: Lustre 2.5.0, Lustre 2.6.0

Type: Improvement Priority: Minor
Reporter: Peng Tao Assignee: Yang Sheng
Resolution: Fixed Votes: 0
Labels: emc, patch

Issue Links:
Related
is related to LU-2686 Kernel update for 3.7.2-201.fc18 Resolved
Rank (Obsolete): 6901

 Description   

Update client code to support upstream 3.8 kernel.



 Comments   
Comment by Peng Tao [ 06/Mar/13 ]

following patches are submitted for review:
http://review.whamcloud.com/5609
http://review.whamcloud.com/5610
http://review.whamcloud.com/5611
http://review.whamcloud.com/5612
http://review.whamcloud.com/5613

More will be submitted later.

Comment by Peter Jones [ 07/Mar/13 ]

Thanks Peng Tao! Yang Sheng, I think that it makes sense for you to oversee these patches.

Comment by Peng Tao [ 08/Mar/13 ]

one more is submitted:
http://review.whamcloud.com/5655

With these patches, lustre client can build and work with 3.8 kernel.

Comment by Alexey Shvetsov [ 25/Mar/13 ]

@Peng Tao

Can you update list of patches for 3.8?

Comment by Peng Tao [ 25/Mar/13 ]

Alexey,

Here is the complete list for 3.8 patches. Three of them were replaced by patches from Jeff Mahoney.
http://review.whamcloud.com/#change,5406
http://review.whamcloud.com/#change,5768
http://review.whamcloud.com/#change,5781
http://review.whamcloud.com/#change,5609
http://review.whamcloud.com/#change,5613
http://review.whamcloud.com/#change,5655

Comment by Alexey Shvetsov [ 31/Mar/13 ]

I have set of patches to support for 3.9 kernel. Should i open separate issue or i can use this one?

Comment by Alexey Shvetsov [ 31/Mar/13 ]

For client and server 3.9 we need
http://review.whamcloud.com/5898
http://review.whamcloud.com/5899

Comment by Yang Sheng [ 01/Apr/13 ]

Hi, Alexey. Please open a new ticket for 3.9 kernel. Since every version kernel work will consumes a lone time to finished. So we keep it separately easy to track progress. TIA.

Comment by Alexey Shvetsov [ 01/Apr/13 ]

Sure. I opened LU-3079

Comment by James A Simmons [ 09/Apr/13 ]

Please be aware ticket LU-2686 over laps with this work.

Comment by Yang Sheng [ 22/Apr/13 ]

http://review.whamcloud.com/6114

Comment by Yang Sheng [ 22/Apr/13 ]

Oops, Please give me a chance be a inspector for kernel update relate patches. So avoid dup efforts. Thanks.

Comment by Alexey Shvetsov [ 22/Apr/13 ]

Seems current list are for kernel v3.8
http://review.whamcloud.com/4649
http://review.whamcloud.com/5973
http://review.whamcloud.com/5974
http://review.whamcloud.com/5768
http://review.whamcloud.com/5781
http://review.whamcloud.com/5763
http://review.whamcloud.com/5613
http://review.whamcloud.com/5655
Last one need a rebase it conflicts with current master and this patches

LU-2850 kernel: 3.8 upstream kills daemonize()

kernel_thread() is a low level kernel function.
Instead of calling kernel_thread() and relying on daemonize()
to create new kernel threads, we should really switch to
kthread_run() and elimilate daemonize().

Conflicts:
libcfs/autoconf/lustre-libcfs.m4
lustre/mdd/mdd_lfsck.c
lustre/obdclass/llog_cat.c
lustre/ptlrpc/recov_thread.c

Also patches that good to have in 2.4 are
http://review.whamcloud.com/6064 <- fix compilation with gcc-4.7.x gcc-4.8.x
http://review.whamcloud.com/5960 <- fix for zfs-0.6.1
http://review.whamcloud.com/5751 <- possible fix for sandbox enabled build systems

Comment by James A Simmons [ 22/Apr/13 ]

I have a update rebased for 5655 if you want me to upload it.

Comment by Peng Tao [ 23/Apr/13 ]

James, please upload it. It helps avoiding dup efforts. Thanks.

Yang, sorry for not including you in the first place. Will add you as inspector in all my future kernel support patches.

Comment by James A Simmons [ 23/Apr/13 ]

I noticed that the 5655 patch is not dependent on any other patches. This is fine but I noticed the patches in LU-3079 don't apply cleanly due to the other patches here. Should we just want until a few patches land then rebase the patches in LU-3079 again or make 5655 dependent on the rest of the series in this ticket?

Comment by Yang Sheng [ 23/Apr/13 ]

I tend to waiting patches landed and then rebase lu-3079.

Comment by Alexey Shvetsov [ 23/Apr/13 ]

BTW for 3.9 kernel support. Patches may be simplyfyed if stuff for ancient kernels (<2.6.32) will be cleaned up. See LU-2800

Comment by Alexey Shvetsov [ 17/May/13 ]

Are there plans to land all this patches before 2.4.0 release? Or they will be postponed to 2.4.x or 2.5.x?

Comment by Peter Jones [ 17/May/13 ]

Alexey

2.4.0 is frozen now. This work will land in later releases

Peter

Comment by James A Simmons [ 20/May/13 ]

Peter can you label this as a 2.5 item

Comment by James A Simmons [ 10/Jun/13 ]

The new recipe for this is against master is:

http://review.whamcloud.com/#change,5973 - LU-2686
http://review.whamcloud.com/#change,5974
http://review.whamcloud.com/#change,5763 - LU-2987
http://review.whamcloud.com/#change,5613 - LU-2850
http://review.whamcloud.com/#change,5655

I have tested with the currently support RHEL6.4 kernel. I'm working on getting a 3.9.4 kernel going to test against soon.

Comment by James A Simmons [ 13/Jun/13 ]

With the above listed patches and patches from LU-3079 I get this.

LNet: HW CPU cores: 8, npartitions: 2
alg: No test for crc32 (crc32-table)
alg: No test for adler32 (adler32-zlib)
LNet: Added LNI 10.37.248.7@o2ib1 [8/2560/0/180]
Lustre: Lustre: Build Version: 2.4.50-g2f41b68-CHANGED-3.9.4
Lustre: Layout lock feature supported.
Lustre: Mounted lustre-client

It appears to work. We have Lustre 3.9.4 clients. With this I can start my work on ldiskfs for 3.9.4.

Comment by Alexey Shvetsov [ 13/Jun/13 ]

Yep. I run it on small production cluster with lustre/zfs 2.4rc2
servers are 3.8.6 clients are both 3.8.6 and 3.9.4

Comment by James A Simmons [ 13/Jun/13 ]

The only thing is I have modify http://review.whamcloud.com/#change,5655 due to conflicts with the patch from LU-2059 and LU-2800 autoconf patch. Needs updating as well. At this point it is hard to say which will land first.

Comment by Keith Mannthey (Inactive) [ 20/Jun/13 ]

http://review.whamcloud.com/5655 has landed.

Comment by Cory Spitz [ 26/Jun/13 ]

FYI, LU-3484 and LU-3486 are needed for 3.8 kernels (for NFS export).

Comment by James A Simmons [ 27/Jun/13 ]

Thanks Cory. For 3.8 to work properly you need the following patches:

http://review.whamcloud.com/#/c/5974 - LU-2686
http://review.whamcloud.com/#/c/5763 - LU-2987

http://review.whamcloud.com/#/c/6715 - LU-3483
http://review.whamcloud.com/#/c/6726 - LU-3484

Optional cleanup patch

http://review.whamcloud.com/#/c/5505 - LU-2800

Comment by Alexey Shvetsov [ 11/Jul/13 ]

All 3.8 related patches were merged

Comment by James A Simmons [ 11/Jul/13 ]

All that is left is some NFS patches but this is a general 3.X problem.I guess we can migrate all further information to LU-3079. Peter can you close this ticket.

Comment by Peter Jones [ 11/Jul/13 ]

ok

Comment by James A Simmons [ 02/Jan/14 ]

One patch was missed due to GSS not being tested. It is at http://review.whamcloud.com/#/c/8396. Please inspect.

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