From: Andrew Morton <akpm@zip.com.au>
To: Craig Kulesa <ckulesa@as.arizona.edu>
Cc: linux-mm@kvack.org, Ed Tomlinson <tomlins@cam.org>
Subject: Re: slablru for 2.5.32-mm1
Date: Thu, 05 Sep 2002 21:38:46 -0700 [thread overview]
Message-ID: <3D783156.68A088D1@zip.com.au> (raw)
In-Reply-To: <Pine.LNX.4.44.0209052032410.30628-100000@loke.as.arizona.edu>
Craig Kulesa wrote:
>
> Ed Tomlinson wrote:
> >> Andrew Morton wrote:
> >>
> >> The patch does a zillion BUG->BUG_ON conversions in slab.c, which is a
> >> bit unfortunate, because it makes it a bit confusing to review. Let's
> >> do that in a standalone patch next time ;)
> >
> > Yes. I would have left the BUG_ONs till later. Craig thought
> > otherwise. I do agree two patches would have been better.
>
> I agree also. I never imagined that patch would make it up the ladder
> before the BUG_ON's changes got split out into a separate patch. Sorry!
> So... since I introduced the BUG_ON's, I thought I should clean it up.
>
> This is mostly for Ed and Andrew, but at:
> http://loke.as.arizona.edu/~ckulesa/kernel/rmap-vm/2.5.33/
>
> you can get a copy of Andrew's slablru.patch from the 2.5.33-mm3 series
> where I have altered fs/dcache.c and mm/slab.c (whose patches otherwise
> apply cleanly to vanilla 2.5.33) to remove the BUG_ON changes. It does
> reduce the size of the patch, and improves its readability considerably.
> Hope that helps.
Thanks. This patch is in Ed's hands at present - his call.
> ----
>
> I have a terribly naive question to add though. From the original message
> in this thread, Andrew reverted this BUG_ON due to side-effects:
>
> BUG_ON(smp_call_function(func, arg, 1, 1));
>
> I must be dense -- why? All we are doing is passing gcc the hint that
> this is an unlikely path, and surely that's true? I mean, if it's not,
> don't we have other things to worry about?
>
Because some crazy embedded system person may want to save some
bytes by using:
#define BUG_ON(x) do { } while (0)
Which is quite legitimate - it's just debug. We should attempt to
support that, I suggest.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/
next prev parent reply other threads:[~2002-09-06 4:38 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-06 4:07 Craig Kulesa
2002-09-06 4:24 ` Robert Love
2002-09-08 21:43 ` Daniel Phillips
2002-09-09 4:36 ` Robert Love
2002-09-09 5:10 ` Daniel Phillips
2002-09-06 4:38 ` Andrew Morton [this message]
2002-09-06 11:39 ` Ed Tomlinson
2002-09-06 18:57 ` Craig Kulesa
-- strict thread matches above, loose matches on Subject: below --
2002-08-28 22:11 Ed Tomlinson
2002-08-26 22:09 MM patches against 2.5.31 Ed Tomlinson
2002-08-26 23:58 ` Andrew Morton
2002-08-28 17:06 ` slablru for 2.5.32-mm1 Ed Tomlinson
2002-08-28 21:24 ` Andrew Morton
2002-08-28 22:23 ` Rik van Riel
2002-09-02 5:26 ` Andrew Morton
2002-09-02 15:00 ` Ed Tomlinson
2002-09-02 18:35 ` Andrew Morton
2002-09-02 19:09 ` Ed Tomlinson
2002-09-02 19:51 ` Andrew Morton
2002-09-02 6:50 ` Andrew Morton
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=3D783156.68A088D1@zip.com.au \
--to=akpm@zip.com.au \
--cc=ckulesa@as.arizona.edu \
--cc=linux-mm@kvack.org \
--cc=tomlins@cam.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