From: "Randy.Dunlap" <rdunlap@xenotime.net>
To: Kyle Moffett <mrmacman_g4@mac.com>
Cc: linux-kernel@vger.kernel.org, akpm@osdl.org
Subject: Re: [RFC] [PATCH] make add_taint() inline
Date: Sun, 11 Sep 2005 15:56:37 -0700 [thread overview]
Message-ID: <20050911155637.3839db5c.rdunlap@xenotime.net> (raw)
In-Reply-To: <8244F3CF-9EF7-44BB-B3DA-B46A1FF39E1C@mac.com>
On Sun, 11 Sep 2005 14:22:08 -0400 Kyle Moffett wrote:
> On Sep 11, 2005, at 13:44:37, donate wrote:
> > From: Randy Dunlap <rdunlap@xenotime.net>
> >
> > add_taint() is a trivial function.
> > No need to call it out-of-line, just make it inline and
> > remove its export.
>
> Actually, in this case it might be better to leave add_taint
> exported, add and export a new function get_taint(), and then
> remove all export of the variable "tainted". I've actually
> seen one case where some module removed taint bits. I don't
some in-tree module?
> remember where or why, but it seemed really bad at the time,
> and still does. Also, does the tainted variable need any
> kind of locking? What happens if two CPUs try to taint the
> kernel simultaneously?
Good question. one wins?
It sure looks like a problem in theory. I don't know that
we have ever seen a bug report related to it though.
Maybe Dave Jones's modprobe/insmod killer test on a big
multiprocessor system could do that one day.
---
~Randy
next prev parent reply other threads:[~2005-09-11 22:56 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20050911103757.7cc1f50f.rdunlap@xenotime.net>
2005-09-11 17:44 ` donate
2005-09-11 18:22 ` Kyle Moffett
2005-09-11 22:56 ` Randy.Dunlap [this message]
2005-09-11 23:10 ` Kyle Moffett
2005-09-11 19:44 ` Andrew Morton
2005-09-11 22:52 ` 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=20050911155637.3839db5c.rdunlap@xenotime.net \
--to=rdunlap@xenotime.net \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mrmacman_g4@mac.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®