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

OSC procfs data is accessible when OSC is not ready to process it

    XMLWordPrintable

Details

    • Bug
    • Resolution: Low Priority
    • Minor
    • None
    • Lustre 2.1.0
    • None
    • 3
    • 10617

    Description

      some OSC procfs functions use osc_device which is lu_device. It must be linked with obd_device given not NULL obd->obd_lu_dev. It is done at the end of obd_setup() function. But procfs files are accessible before that because obd procfs data is initialized inside OSC o_setup. Solution can be artificial setting obd->obd_lu_dev to the osc_device inside osc_setup().

      The same problem exists during obd_cleanup - first it free osc_device therefore obd->obd_lu_dev is NULL again but OBD procfs data is cleaned up after that in osc_cleanup(). Solution can be moving lprocfs_obd_cleanup to the precleanup function.

      Attachments

        Activity

          People

            wc-triage WC Triage
            tappro Mikhail Pershin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: