mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Hugh Dickins <hugh@veritas.com>
To: Andrew Morton <akpm@osdl.org>
Cc: torvalds@osdl.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] mm: poison struct page for ptlock
Date: Sat, 5 Nov 2005 06:40:28 +0000 (GMT)	[thread overview]
Message-ID: <Pine.LNX.4.61.0511050604040.26716@goblin.wat.veritas.com> (raw)
In-Reply-To: <20051104213225.39d4c2a3.akpm@osdl.org>

On Fri, 4 Nov 2005, Andrew Morton wrote:
> Hugh Dickins <hugh@veritas.com> wrote:
> 
> > While leaving most of the page_private() mods in place for the moment,
> > could we please try this patch, or something like it?  Again to overlay
> > the spinlock_t from &page->private onwards, with corrected BUILD_BUG_ON
> > that we don't go beyond ->lru; with poisoning of the fields overlaid,
> > and unsplit config verifying that the split config is safe to use them.
> 
> Does your family know you do this sort of thing?

They are beginning to suspect it, so I've made sure they're still asleep.

> What happened to my suggestion that we use anonymous structs here, and
> abandon gcc-2.9x?

Much as I'd hate split ptlock to enlarge struct page, I'd hate it to be
the last straw that forced you off gcc-2.9x: it does not deserve that.

But also, I just misunderstood you until now: I'd been stupidly thinking
you meant an anonymous union in place of your current u there; whereas
you meant extending the union to cover mapping, index, lru.   Hmm.

Well, if you're actively seeking a excuse to abandon gcc-2.9x?  But
although you're its best-known advocate, I think you're not alone.
Shall we wait for a more pressing reason?

> > -#define page_private(page)		((page)->u.private)
> > -#define set_page_private(page, v)	((page)->u.private = (v))
> > +#define page_private(page)		((page)->private)
> > +#define set_page_private(page, v)	((page)->private = (v))
> 
> Need to rename ->private to ->_private here, otherwise people will start
> using page->private again.

I'm happy for people to use page->private again.  I thought we
ought to try out this minimal patch first, for reassurance that the
arches are not using those fields of a pagetable struct page; but that
once it's had some exposure, we'd revert the page_private mods elsewhere.
There's no point to that wrapper with the union gone, is there?

Hugh

  reply	other threads:[~2005-11-05  6:41 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-03 19:26 Hugh Dickins
2005-11-05  5:32 ` Andrew Morton
2005-11-05  6:40   ` Hugh Dickins [this message]
2005-11-05  7:17     ` Andrew Morton
2005-11-06 19:28 ` Andrew Morton
2005-11-06 17:59   ` Anton Blanchard
2005-11-06 19:34   ` Olof Johansson
2005-11-06 22:39   ` Paul Mackerras
2005-11-06 22:57   ` Andrew Morton
2005-11-06 22:58   ` Hugh Dickins
2005-11-06 23:13     ` Andrew Morton
2005-11-06 23:36       ` David S. Miller
2005-11-06 23:48       ` Hugh Dickins
2005-11-07  0:00         ` Andrew Morton
2005-11-07  0:15           ` Hugh Dickins

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=Pine.LNX.4.61.0511050604040.26716@goblin.wat.veritas.com \
    --to=hugh@veritas.com \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@osdl.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®