Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-1116

support rhel6.2 patchless client on 1.8.x

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Minor
    • Lustre 1.8.8
    • Lustre 1.8.7
    • None
    • 9737

    Description

      RHEL6.2 pathcless client needs to be supported on 1.8.x. Intel and AMD CPU based server requires rhel6.2's kernel to support full functions and performance. The master branch supports for this distribution, so at least we need backport the following patches from master branch, and one code change for the patchless client.

      LU-766 Incorrect HAVE_STATFS_DENTRY_PARAM result
      LU-778 RHEL 6.2: rdma_create_id() takes four arguments
      LU-1050 configure broken on centos6.2 with OFED-1.5.4

      On rhel6.2's kenrel, an function name roundup() in include/linux/kernel.h was changed to round_up() which is duplicated what the lustre used in lustre/mdc/mdc_locks.c.
      So, we may need to change this function name like lu_round_up(). This is discussed on wc-discuss.

      --- a/lustre/mdc/mdc_locks.c	2012-01-12 15:54:32.731336048 +0100
      +++ b/lustre/mdc/mdc_locks.c	2012-01-12 15:54:46.072345471 +0100
      @@ -185,7 +185,7 @@
               }
       }
       
      -static int round_up(int val)
      +static int lu_round_up(int val)
       {
               int ret = 1;
               while (val) {
      @@ -301,7 +301,7 @@
               rc = lustre_msg_size(class_exp2cliimp(exp)->imp_msg_magic,
                                    bufcount, size);
               if (rc & (rc - 1))
      -                size[bufcount - 1] = min(size[bufcount - 1] + round_up(rc) - rc,
      +                size[bufcount - 1] = min(size[bufcount - 1] + lu_round_up(rc) - rc,
                                                (__u32)obddev->u.cli.cl_max_mds_easize);
       
               /* If inode is known, cancel conflicting OPEN locks. */
      

      Attachments

        Issue Links

          Activity

            People

              ys Yang Sheng
              ihara Shuichi Ihara (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: