Andreas,
med_open_head is list of mdt_file_data objects. And struct mdt_file_data is an internal structure to mdt. So we cannot walk med_open_head from obdclass(lprocfs_status.c) using this linked list. We could have had a function in mdt to return lu_object for a given mdt_file_data object but that would make odbclass module dependent on mdt. (mdt is already used by obdclass)
So the only option I see is to export list of open lu_objects/md_objects, structs which are known by obdclass. Please advise.
Other than this layering issue the patch is ready with a testcase.
Thanks,
Girish
Patch landed for 2.6