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.