[ofa-general] IB kernel modules and the kobject release() method

Roland Dreier rdreier at cisco.com
Thu Aug 6 10:37:19 PDT 2009


 > 
 > After having enabled CONFIG_DEBUG_KOBJECT=y in the kernel config I
 > noticed that messages appeared in the kernel log about the IB modules
 > missing a kobject release() method. This happens both with a vanilla
 > 2.6.30.4 kernel and with a 2.6.27.29 kernel + OFED 1.4.1. Has anyone
 > noticed this before ?
 > 
 > An example of the messages logged in /var/log/messages:
 > 
 > ...
 > kobject: 'ib_cm' (ffffffffa067a810): does not have a release()
 > function, it is broken and must be fixed.

I don't see anything similar with CONFIG_DEBUG_KOBJECT enabled on
2.6.31-rc5 (without adding in any OFED confusion).

It seems as if you get this message for every module being loaded; do
you see it for any non-RDMA-related modules?  (Do you have any such
modules in your config?)  I can imagine the OFED build system messing
things up, but if you're just building the modules as part of the normal
kernel build (ie your vanilla 2.6.30 kernel) then I don't see anything
that would make ib_cm or iw_cm any different from any other module.

For example, if I load ib_cm on my kernel, the only log messages I see
from "dmesg|grep ib_cm" are:

    kobject: 'ib_cm' (ffffffffa024c8f0): kobject_add_internal: parent: 'module', set: 'module'
    kobject: 'holders' (ffff88022c1c9df8): kobject_add_internal: parent: 'ib_cm', set: '<NULL>'
    kobject: 'ib_cm' (ffffffffa024c8f0): kobject_uevent_env
    kobject: 'ib_cm' (ffffffffa024c8f0): fill_kobj_path: path = '/module/ib_cm'
    kobject: 'notes' (ffff88022c1c9be8): kobject_add_internal: parent: 'ib_cm', set: '<NULL>'

 - R.



More information about the general mailing list