From: Arthur Jones <ajones@riverbed.com>
To: Doug Thompson <norsk5@yahoo.com>
Cc: Greg KH <greg@kroah.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"bluesmoke-devel@lists.sourceforge.net"
<bluesmoke-devel@lists.sourceforge.net>
Subject: Re: on static kobjects and double frees...
Date: Tue, 10 Jun 2008 14:39:16 -0700 [thread overview]
Message-ID: <20080610213916.GC28572@ajones-laptop.nbttech.com> (raw)
In-Reply-To: <879085.21951.qm@web50106.mail.re2.yahoo.com>
Hi Doug, ...
On Tue, Jun 10, 2008 at 02:14:30PM -0700, Doug Thompson wrote:
> [...]
> Arthur, thanks for tracking that down and reviewing it. All the memory controller kobjects are all
> dynamic. [...]
You're welcome, I learned a lot about kobjects
that I should have already known...
AFAICS, mc is not quite clean yet, though, as
mc_kset is static and I don't think that is right.
It does, however, look like less work than edac_pci_sysfs.c...
> [...] The edac PCI code needed to be refactored and it looks like you did it.
I only did the bare minimum, there's a lot of kobject
stuff in there that looks suspect to me, e.g.:
* the "pci" object should be a kset rather than a kobject?
* if the "pci" object is a kset, can the whole global list
thing in edac_pci just go away?
* do we really need the atomic_inc counter, wouldn't a mutex
be clearer?
* can we initialize "pci" at init time thereby removing the
need even for a mutex on the "pci" initializer? This does
change the sysfs semantics slightly, though, as the "pci"
object would no longer be created lazily. I'm not sure if
that's a problem.
and other minor things. It looks to me like it could
use a thorough scrubbing. The good news is that I don't
think the API would change much if at all. I can have a
closer look if you are interested...
Arthur
prev parent reply other threads:[~2008-06-10 21:39 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-10 15:58 Arthur Jones
2008-06-10 16:23 ` Greg KH
2008-06-10 16:38 ` Arthur Jones
2008-06-10 16:42 ` Greg KH
2008-06-10 16:58 ` Arthur Jones
2008-06-10 21:14 ` Doug Thompson
2008-06-10 21:39 ` Arthur Jones [this message]
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=20080610213916.GC28572@ajones-laptop.nbttech.com \
--to=ajones@riverbed.com \
--cc=bluesmoke-devel@lists.sourceforge.net \
--cc=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
--cc=norsk5@yahoo.com \
/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®