* cfi_probe module usage count when insmod physmap.o fails
@ 2001-02-13 17:57 Vipin Malik
2001-02-13 17:38 ` David Woodhouse
0 siblings, 1 reply; 2+ messages in thread
From: Vipin Malik @ 2001-02-13 17:57 UTC (permalink / raw)
To: mtd
When insmod physmap.o fails, it does not decrement the usage count of
cfi_probe.o
This results in an ever increasing usage count for each "try" of insmod
physmap.o
The problem that I encountered is that trying to unload cfi_probe module
to add some debug printk's was not possible.
I solved the problem with an extra line in physmap.c right before it
exits because do_cfi_probe() failed that decrements
the cfi_probe module usage count as thus:
inter_module_put("cfi_probe");
This works. Anyone see any problems with it? If not can we change
physmap.c with this change?
Thanks
Vipin
To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: cfi_probe module usage count when insmod physmap.o fails
2001-02-13 17:57 cfi_probe module usage count when insmod physmap.o fails Vipin Malik
@ 2001-02-13 17:38 ` David Woodhouse
0 siblings, 0 replies; 2+ messages in thread
From: David Woodhouse @ 2001-02-13 17:38 UTC (permalink / raw)
To: Vipin Malik; +Cc: mtd
vmalik@danielind.com said:
> I solved the problem with an extra line in physmap.c right before it
> exits because do_cfi_probe() failed that decrements the cfi_probe
> module usage count as thus:
> inter_module_put("cfi_probe");
Probably right. It was all working fine when it was using
get_module_symbol(). Now, I think I'm going to just give up and switch over
to hard dependencies on the symbols.
--
dwmw2
To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-02-13 17:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-02-13 17:57 cfi_probe module usage count when insmod physmap.o fails Vipin Malik
2001-02-13 17:38 ` David Woodhouse
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox