public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Module Ref Counting & ibmphp
@ 2006-03-14 22:47 Srihari Vijayaraghavan
  2006-03-15  0:02 ` Greg KH
  0 siblings, 1 reply; 8+ messages in thread
From: Srihari Vijayaraghavan @ 2006-03-14 22:47 UTC (permalink / raw)
  To: greg; +Cc: linux-kernel

Before (in 2.6.16-rc*):
$ egrep 'ibmphp' /proc/modules
ibmphp 67809 4294967295 - Live 0xf8910000
             ^^^^^^^^^^

After [1]:
ibmphp 64224 0 - Live 0xf8965000
             ^

Of course, now I'm able to successfully unload ibmphp
(& subsequently load it too :)) without any
observeable problems.

It'd seem, thro struct hotplug_slot_ops, module ref
count for ibmphp is taken care of. No?

Correct me, if I'm completely wrong here. Perhaps,
there may be a better way to address this that I'm
unaware of. If so, enlighten me.

I'm afraid I've no hardware to verify whether the
patch introduces any regressions.

Thanks

[1]
--- 2.6.16-rc6/drivers/pci/hotplug/ibmphp_core.c.orig
2006-03-15 03:37:38.000000000 +1100
+++ 2.6.16-rc6/drivers/pci/hotplug/ibmphp_core.c
2006-03-14 16:57:26.000000000 +1100
@@ -1398,10 +1398,6 @@
 		goto error;
 	}
 
-	/* lock ourselves into memory with a module 
-	 * count of -1 so that no one can unload us. */
-	module_put(THIS_MODULE);
-
 exit:
 	return rc;




		
____________________________________________________ 
On Yahoo!7 
Answers: Real people ask and answer questions on any topic. 
http://www.yahoo7.com.au/answers.

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2006-03-17 20:30 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-14 22:47 Module Ref Counting & ibmphp Srihari Vijayaraghavan
2006-03-15  0:02 ` Greg KH
2006-03-15  0:21   ` Stephen Hemminger
2006-03-15 17:16     ` Daniel Barkalow
2006-03-17 20:20     ` [2.6 patch] disallow unloading of ibmphp Adrian Bunk
2006-03-17 20:30       ` Adrian Bunk
2006-03-15  3:25   ` Module Ref Counting & ibmphp Srihari Vijayaraghavan
2006-03-15  3:36     ` Randy.Dunlap

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox