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

lprocfs_register() racy, returns NULL and ERR_PTR()

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.5.0
    • Lustre 2.4.0
    • None
    • 3
    • 6190

    Description

      lprocfs_register() should acquire _lprocfs_lock() before searching for the entry to be created. If proc_mkdir() returns NULL then this should be changed to ERR_PTR(-ENOMEM) since most callers are only testing against IS_ERR() (if that).

      IS_ERR_OR_NULL() should probably be backported if needed for use with the proc wrappers.

      Attachments

        Activity

          People

            jhammond John Hammond
            jhammond John Hammond
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: