The case where while probe() is called, the module is unloaded.
Same thing for remove().
That's all.
> After driver calls pci_unregister_driver,
> it is sure that there are no other users of this pci driver.
Sure, but that's not the case of what we are protecting here. We want
pci_unregister_driver() (which is usually called from the module_exit()
function), to not be called if we are in the middle of calling either
probe() or release().
Do you have a way of protecting the race that is described by Russell
here that differs from my patch?
thanks,
greg k-h
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/