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

Avoid using ptlrpc_thread where is in't needed

Details

    • Improvement
    • Resolution: Fixed
    • Minor
    • Lustre 2.15.0
    • None
    • None
    • 9223372036854775807

    Description

      Several places in lustre use 'struct ptlrpc_thread' to "help" manage a kthread.

      These places are not directly related to ptlrpc, so the naming is not help, and in general the usage of ptlrpc_thread does not improve the code.

      By removing the use of ptlrpc_thread - particularly by avoiding startup synchornization and by using kthread_stop/ kthread_should_stop(), I can reduce code size by a couple of hundred lines.

      Using the seemly uniform approach of ptlrpc_thread can lead to an impression that these threads are all managed much the same way, but this is not the case.  There is substantial variety on how the threads work and exposing that clear will benefit maintainability.

       

      Attachments

        Issue Links

          Activity

            [LU-12780] Avoid using ptlrpc_thread where is in't needed
            pjones Peter Jones made changes -
            Fix Version/s New: Lustre 2.15.0 [ 14791 ]
            Fix Version/s Original: Upstream [ 12991 ]
            Resolution New: Fixed [ 1 ]
            Status Original: Open [ 1 ] New: Resolved [ 5 ]
            adilger Andreas Dilger made changes -
            Link New: This issue is related to LU-13986 [ LU-13986 ]
            simmonsja James A Simmons made changes -
            Fix Version/s New: Upstream [ 12991 ]
            simmonsja James A Simmons made changes -
            Assignee Original: WC Triage [ wc-triage ] New: Neil Brown [ neilb ]
            simmonsja James A Simmons made changes -
            Link New: This issue is related to LU-12511 [ LU-12511 ]
            neilb Neil Brown created issue -

            People

              neilb Neil Brown
              neilb Neil Brown
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: