On Wed, 30 Oct 2013, Greg KH wrote: > > I suggest that you implement a function kobject_put_free, that decrements > > the kobject reference count and waits until others stop using the kobject > > and the reference count drops to zero. Then, you change drivers to use > > kobject_put_free instead of kobject_put in their unload routine - that > > will fix this sort of module unload races. > > The "module unload" issue is rare, thankfully, but yes, this type of > function will be showing up in 3.13-rc1 through the btrfs tree as it > needs that functionality, so feel free to use it to resolve this issue > if you need it. > > thanks, > > greg k-h With CONFIG_DEBUG_KOBJECT_RELEASE this issue is not rare - CONFIG_DEBUG_KOBJECT_RELEASE deliberately provokes it. Nice to hear that it will be fixed. You should patch other drivers to use this new function in the unload routine as well. What is the name of the function? I didn't find it in linux-btrfs.git or btrfs-next.git. Mikulas -- dm-devel mailing list dm-devel@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/dm-devel