Details

    • Improvement
    • Resolution: Fixed
    • Minor
    • Lustre 2.7.0
    • Lustre 2.4.0, Lustre 2.5.0
    • 10533

    Description

      Migrate libcfs to emulate Linux kernel APIs, so that when submitting Linux client to upstream kernel, we don't need the abstraction layer which will be rejected by kernel maintainers. The majority of libcfs are cfs_* or ll_* wrappers, and can be cleaned up with scripts doing like "s/cfs_spin_lock/spin_lock". For other functions that cannot be cleaned up this way, we need to look at them in a case-by-case basis.

      Attachments

        Issue Links

          Activity

            [LU-3963] cleanup libcfs wrappers

            Phase I of this work is complete. No more cfs_list or cfs_atomic etc. Now we are unto phase II which is putting libcfs on a diet. Lots of wrappers still exist that are no longer needed so we will now start that cleanup. First patch for that cleanup is here:

            http://review.whamcloud.com/#/c/11963

            simmonsja James A Simmons added a comment - Phase I of this work is complete. No more cfs_list or cfs_atomic etc. Now we are unto phase II which is putting libcfs on a diet. Lots of wrappers still exist that are no longer needed so we will now start that cleanup. First patch for that cleanup is here: http://review.whamcloud.com/#/c/11963

            Last two patches posted have been merged. One last patch for cfs list wrrappers is here:

            http://review.whamcloud.com/#/c/11797

            simmonsja James A Simmons added a comment - Last two patches posted have been merged. One last patch for cfs list wrrappers is here: http://review.whamcloud.com/#/c/11797

            http://review.whamcloud.com/#/c/11725 - Empty file removal

            http://review.whamcloud.com/#/c/11729 - Removal last of cfs wrappers for SMP handling.

            simmonsja James A Simmons added a comment - http://review.whamcloud.com/#/c/11725 - Empty file removal http://review.whamcloud.com/#/c/11729 - Removal last of cfs wrappers for SMP handling.
            yujian Jian Yu added a comment -

            The patches for replacing direct HZ access with Linux kernel APIs will be tracked in LU-5443.

            yujian Jian Yu added a comment - The patches for replacing direct HZ access with Linux kernel APIs will be tracked in LU-5443 .
            simmonsja James A Simmons added a comment - - edited http://review.whamcloud.com/#/c/10387 http://review.whamcloud.com/#/c/10525 http://review.whamcloud.com/#/c/10526
            utopiabound Nathaniel Clark added a comment - http://review.whamcloud.com/10247
            simmonsja James A Simmons added a comment - List cleanup patches: http://review.whamcloud.com/#/c/9369 http://review.whamcloud.com/#/c/9904 http://review.whamcloud.com/#/c/9944

            James, Sorry about that.

            utopiabound Nathaniel Clark added a comment - James, Sorry about that.

            Patch 7073 is still outstanding. Also we have the cfs_list to convert. Please reopen this ticket.

            simmonsja James A Simmons added a comment - Patch 7073 is still outstanding. Also we have the cfs_list to convert. Please reopen this ticket.

            Merged to head

            utopiabound Nathaniel Clark added a comment - Merged to head

            Both patches 7072 and 7074 are merged. The patches left to support linux atomics are:

            http://review.whamcloud.com/#/c/7073
            http://review.whamcloud.com/#/c/7077

            simmonsja James A Simmons added a comment - Both patches 7072 and 7074 are merged. The patches left to support linux atomics are: http://review.whamcloud.com/#/c/7073 http://review.whamcloud.com/#/c/7077

            People

              utopiabound Nathaniel Clark
              bergwolf Peng Tao
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: