From: Srihari Vijayaraghavan <sriharivijayaraghavan@yahoo.com.au>
To: greg@kroah.com
Cc: linux-kernel@vger.kernel.org
Subject: Module Ref Counting & ibmphp
Date: Wed, 15 Mar 2006 09:47:00 +1100 (EST) [thread overview]
Message-ID: <20060314224700.41242.qmail@web52612.mail.yahoo.com> (raw)
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.
next reply other threads:[~2006-03-14 22:47 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-14 22:47 Srihari Vijayaraghavan [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060314224700.41242.qmail@web52612.mail.yahoo.com \
--to=sriharivijayaraghavan@yahoo.com.au \
--cc=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®