From: Hugh Dickins <hugh@veritas.com>
To: Paul Mackerras <paulus@samba.org>
Cc: Andrew Morton <akpm@osdl.org>,
Ben Herrenschmidt <benh@kernel.crashing.org>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 3/5] mm: powerpc ptlock comments
Date: Tue, 22 Nov 2005 07:12:02 +0000 (GMT) [thread overview]
Message-ID: <Pine.LNX.4.61.0511220705110.22267@goblin.wat.veritas.com> (raw)
In-Reply-To: <17282.21410.203627.607569@cargo.ozlabs.ibm.com>
On Tue, 22 Nov 2005, Paul Mackerras wrote:
>
> > Update comments (only) on page_table_lock and mmap_sem in arch/powerpc.
>
> [snip]
>
> > /*
> > - * No need to use ldarx/stdcx here because all who
> > - * might be updating the pte will hold the
> > - * page_table_lock
> > + * No need to use ldarx/stdcx here
> > */
>
> If you're going to remove the because clause you might as well remove
> the whole comment. What you have left is either redundant or
> mystifying (according to the depth of knowledge of the reader). And
> in fact I don't think I could now say why we don't need an atomic
> update sequence there, so I would appreciate something that updates
> the "because" part.
All I'm doing here is tidying up by removing the no-longer-appropriate
reference to page_table_lock. As my snipped patch comment said:
> Update comments (only) on page_table_lock and mmap_sem in arch/powerpc.
> Removed the comment on page_table_lock from hash_huge_page: since it's
> no longer taking page_table_lock itself, it's irrelevant whether others
> are; but how it is safe (even against huge file truncation?) I can't say.
I'd appreciate something that updates the "because" part too, but don't
know the answer. That other patch will need to come from your end - Ben?
Hugh
next prev parent reply other threads:[~2005-11-22 7:11 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-21 20:31 [PATCH 0/5] mm: flotsam Hugh Dickins
2005-11-21 20:32 ` [PATCH 1/5] mm: update split ptlock Kconfig Hugh Dickins
2005-11-21 20:33 ` [PATCH 2/5] mm: unbloat get_futex_key Hugh Dickins
2005-11-21 20:35 ` [PATCH 3/5] mm: powerpc ptlock comments Hugh Dickins
2005-11-21 23:09 ` Paul Mackerras
2005-11-22 7:12 ` Hugh Dickins [this message]
2005-11-22 7:57 ` Benjamin Herrenschmidt
2005-11-21 20:36 ` [PATCH 4/5] mm: powerpc init_mm without ptlock Hugh Dickins
2005-11-21 20:38 ` [PATCH 5/5] mm: fill arch atomic64 gaps 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.0511220705110.22267@goblin.wat.veritas.com \
--to=hugh@veritas.com \
--cc=akpm@osdl.org \
--cc=benh@kernel.crashing.org \
--cc=linux-kernel@vger.kernel.org \
--cc=paulus@samba.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®