Details

    • Technical task
    • Resolution: Fixed
    • Minor
    • Lustre 2.4.0
    • None
    • 20,943
    • 8140

    Description

      Update the attached patch from Bug 20943, which adds doxygen comments to the ldlm module, for master.

      Attachments

        Activity

          [LU-1914] Doxygen comments - ldlm module
          jlevi Jodi Levi (Inactive) made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Reopened [ 4 ] New: Resolved [ 5 ]
          jlevi Jodi Levi (Inactive) made changes -
          Labels Original: comments documentation New: documentation
          jlevi Jodi Levi (Inactive) made changes -
          Resolution Original: Fixed [ 1 ]
          Status Original: Closed [ 6 ] New: Reopened [ 4 ]
          nedbass Ned Bass (Inactive) made changes -
          Fix Version/s New: Lustre 2.4.0 [ 10154 ]
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Closed [ 6 ]

          patch landed to master

          nedbass Ned Bass (Inactive) added a comment - patch landed to master
          nedbass Ned Bass (Inactive) added a comment - http://review.whamcloud.com/#change,3985

          I have a few questions about this patch.

                   /**
          -         * Hash table for namespace.
          +         * Resource hash table for namespace.
          +         * Hash table is organized as an array of \see RES_HASH_SIZE elements.
          +         * Each element is a list_head linking all resources whose name hash is
          +         * equal to the array position.
          +         * \see ldlm_hash_fn for the actual hash function.
                    */
                   cfs_list_t            *ns_hash;
          

          The ldlm namespace resource hashtable now appears to use the generic cfs hash implementation, so I think we can omit any hash table implementation details here.

          -         /**
          -          * Seconds.
          -          */
          +        /**
          +         * Seconds.
          +         * Appears to be currently unused. Should be removed.
          +         */
                   unsigned int           ns_ctime_age_limit;
          

          Contrary to this comment, ns_ctime_age_limit is still used in mdt_handler.c:mdt_getattr_name_lock() (bugzilla 14910). I'm thinking of of a comment along these lines.

          /** 
           * Number of seconds since the file change time after which the 
           * MDT will return an UPDATE lock along with a LOOKUP lock. 
           * This allows the client to start caching negative dentries 
           * for the directory and may save an RPC for a later stat. 
           */ 
          unsigned int           ns_ctime_age_limit;
          

          But it's still a bit muddled to me. What is the connection between the change time, the update lock, negative dentries, and why does returning an update lock save an RPC for a stat? How is the value chosen? This may not be the right place to explain all these things; perhaps the LDLM_CTIME_AGE_LIMIT definition would be appropriate, and we could provide a reference here.

          nedbass Ned Bass (Inactive) added a comment - I have a few questions about this patch. /** - * Hash table for namespace. + * Resource hash table for namespace. + * Hash table is organized as an array of \see RES_HASH_SIZE elements. + * Each element is a list_head linking all resources whose name hash is + * equal to the array position. + * \see ldlm_hash_fn for the actual hash function. */ cfs_list_t *ns_hash; The ldlm namespace resource hashtable now appears to use the generic cfs hash implementation, so I think we can omit any hash table implementation details here. - /** - * Seconds. - */ + /** + * Seconds. + * Appears to be currently unused. Should be removed. + */ unsigned int ns_ctime_age_limit; Contrary to this comment, ns_ctime_age_limit is still used in mdt_handler.c:mdt_getattr_name_lock() (bugzilla 14910). I'm thinking of of a comment along these lines. /** * Number of seconds since the file change time after which the * MDT will return an UPDATE lock along with a LOOKUP lock. * This allows the client to start caching negative dentries * for the directory and may save an RPC for a later stat. */ unsigned int ns_ctime_age_limit; But it's still a bit muddled to me. What is the connection between the change time, the update lock, negative dentries, and why does returning an update lock save an RPC for a stat? How is the value chosen? This may not be the right place to explain all these things; perhaps the LDLM_CTIME_AGE_LIMIT definition would be appropriate, and we could provide a reference here.
          nedbass Ned Bass (Inactive) created issue -

          People

            nedbass Ned Bass (Inactive)
            nedbass Ned Bass (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: