All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel Phillips <phillips@arcor.de>
To: paulmck@us.ibm.com
Cc: "Stephen C. Tweedie" <sct@redhat.com>,
	Andrew Morton <akpm@osdl.org>,
	Christoph Hellwig <hch@infradead.org>,
	linux-kernel <linux-kernel@vger.kernel.org>,
	linux-mm <linux-mm@kvack.org>
Subject: Re: Non-GPL export of invalidate_mmap_range
Date: Fri, 20 Feb 2004 15:37:26 -0500	[thread overview]
Message-ID: <200402201535.47848.phillips@arcor.de> (raw)
In-Reply-To: <20040220120255.GA1269@us.ibm.com>

Hi Paul,

> I cannot think of any reasonable alternative to passing the parameter
> down either, as it certainly does not be reasonable to duplicate the
> code...

Yes, it's simply the (small) price that has to be paid in order to be able to 
boast about our accurate semantics.

> How about something like "private_too" instead of "zap"?

How about just "all", which is what we mean.

> > -void zap_page_range(struct vm_area_struct *vma,
> > -			unsigned long address, unsigned long size)
> > +void invalidate_page_range(struct vm_area_struct *vma,
>
> Would it be useful for this to be inline?  (Wouldn't seem so,
> zapping mappings has enough overhead that an extra level of
> function call should be deep down in the noise...)

Yes, it doesn't seem worth it just to save a stack frame.

Actually, I erred there in that invalidate_mmap_range should not export the 
flag, because it never makes sense to pass in non-zero from a DFS.

> Doesn't the new argument need to be passed down through
> invalidate_mmap_range_list()?

It does, thanks for the catch.  Please bear with me for a moment while I 
reroll this, then hopefully we can move on to the more interesting discussion 
of whether it's worth it.  (Yes it is :)

Regards,

Daniel


WARNING: multiple messages have this Message-ID (diff)
From: Daniel Phillips <phillips@arcor.de>
To: paulmck@us.ibm.com
Cc: "Stephen C. Tweedie" <sct@redhat.com>,
	Andrew Morton <akpm@osdl.org>,
	Christoph Hellwig <hch@infradead.org>,
	linux-kernel <linux-kernel@vger.kernel.org>,
	linux-mm <linux-mm@kvack.org>
Subject: Re: Non-GPL export of invalidate_mmap_range
Date: Fri, 20 Feb 2004 15:37:26 -0500	[thread overview]
Message-ID: <200402201535.47848.phillips@arcor.de> (raw)
In-Reply-To: <20040220120255.GA1269@us.ibm.com>

Hi Paul,

> I cannot think of any reasonable alternative to passing the parameter
> down either, as it certainly does not be reasonable to duplicate the
> code...

Yes, it's simply the (small) price that has to be paid in order to be able to 
boast about our accurate semantics.

> How about something like "private_too" instead of "zap"?

How about just "all", which is what we mean.

> > -void zap_page_range(struct vm_area_struct *vma,
> > -			unsigned long address, unsigned long size)
> > +void invalidate_page_range(struct vm_area_struct *vma,
>
> Would it be useful for this to be inline?  (Wouldn't seem so,
> zapping mappings has enough overhead that an extra level of
> function call should be deep down in the noise...)

Yes, it doesn't seem worth it just to save a stack frame.

Actually, I erred there in that invalidate_mmap_range should not export the 
flag, because it never makes sense to pass in non-zero from a DFS.

> Doesn't the new argument need to be passed down through
> invalidate_mmap_range_list()?

It does, thanks for the catch.  Please bear with me for a moment while I 
reroll this, then hopefully we can move on to the more interesting discussion 
of whether it's worth it.  (Yes it is :)

Regards,

Daniel

--
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/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>

  reply	other threads:[~2004-02-20 20:44 UTC|newest]

Thread overview: 135+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-16 19:09 Non-GPL export of invalidate_mmap_range Paul E. McKenney
2004-02-16 19:09 ` Paul E. McKenney
2004-02-17  2:31 ` Andrew Morton
2004-02-17  2:31   ` Andrew Morton
2004-02-17  7:35 ` Christoph Hellwig
2004-02-17  7:35   ` Christoph Hellwig
2004-02-17 12:40   ` Paul E. McKenney
2004-02-17 12:40     ` Paul E. McKenney
2004-02-18  0:19     ` Andrew Morton
2004-02-18  0:19       ` Andrew Morton
2004-02-18 12:51       ` Arjan van de Ven
2004-02-18 14:00         ` Paul E. McKenney
2004-02-18 14:00           ` Paul E. McKenney
2004-02-18 21:10           ` Christoph Hellwig
2004-02-18 21:10             ` Christoph Hellwig
2004-02-18 15:06             ` Paul E. McKenney
2004-02-18 15:06               ` Paul E. McKenney
2004-02-18 22:21               ` Christoph Hellwig
2004-02-18 22:21                 ` Christoph Hellwig
2004-02-18 22:51                 ` Andrew Morton
2004-02-18 22:51                   ` Andrew Morton
2004-02-18 23:00                   ` Christoph Hellwig
2004-02-18 23:00                     ` Christoph Hellwig
2004-02-18 16:21                     ` Paul E. McKenney
2004-02-18 16:21                       ` Paul E. McKenney
2004-02-18 23:32                     ` Andrew Morton
2004-02-18 23:32                       ` Andrew Morton
2004-02-19 12:32                       ` Christoph Hellwig
2004-02-19 12:32                         ` Christoph Hellwig
2004-02-19 18:56                         ` Andrew Morton
2004-02-19 18:56                           ` Andrew Morton
2004-02-19 19:01                           ` Christoph Hellwig
2004-02-19 19:01                             ` Christoph Hellwig
2004-02-19 13:04                             ` Paul E. McKenney
2004-02-19 13:04                               ` Paul E. McKenney
2004-02-20  3:17                             ` Anton Blanchard
2004-02-20  3:17                               ` Anton Blanchard
2004-02-20 21:46                               ` Valdis.Kletnieks
2004-02-19  0:28                     ` Andrew Morton
2004-02-19  0:28                       ` Andrew Morton
2004-02-18 18:36                       ` Paul E. McKenney
2004-02-18 18:36                         ` Paul E. McKenney
2004-02-19 12:31                       ` Christoph Hellwig
2004-02-19 12:31                         ` Christoph Hellwig
2004-02-19  9:11                         ` Paul E. McKenney
2004-02-19  9:11                           ` Paul E. McKenney
2004-02-19 18:32                           ` Lars Marowsky-Bree
2004-02-19 18:38                             ` Arjan van de Ven
2004-02-19 19:16                             ` viro
2004-02-19 19:16                               ` viro
2004-02-19 16:15                               ` Paul E. McKenney
2004-02-19 16:15                                 ` Paul E. McKenney
2004-02-19 18:59                         ` Tim Bird
2004-02-19 18:59                           ` Tim Bird
2004-02-20  1:27                       ` David Schwartz
2004-02-19  9:11                   ` David Weinehall
2004-02-19  9:11                     ` David Weinehall
2004-02-19  8:58                     ` Paul E. McKenney
2004-02-19  8:58                       ` Paul E. McKenney
2004-03-04  5:51                       ` Mike Fedyk
2004-03-04  5:51                         ` Mike Fedyk
2004-02-19 10:29                   ` Lars Marowsky-Bree
2004-02-19 10:29                     ` Lars Marowsky-Bree
2004-02-19  9:00                     ` Paul E. McKenney
2004-02-19  9:00                       ` Paul E. McKenney
2004-02-19 11:11                     ` Arjan van de Ven
2004-02-19 11:53                       ` Lars Marowsky-Bree
2004-02-19 11:53                         ` Lars Marowsky-Bree
2004-02-18 18:04         ` Tim Bird
2004-02-18 18:04           ` Tim Bird
2004-02-19 20:56       ` Daniel Phillips
2004-02-19 20:56         ` Daniel Phillips
2004-02-19 22:06         ` Stephen C. Tweedie
2004-02-19 22:06           ` Stephen C. Tweedie
2004-02-19 22:31           ` Daniel Phillips
2004-02-19 22:31             ` Daniel Phillips
2004-02-19 16:42             ` Paul E. McKenney
2004-02-19 16:42               ` Paul E. McKenney
2004-02-20  2:06               ` Daniel Phillips
2004-02-20  2:06                 ` Daniel Phillips
2004-02-19 19:47                 ` Paul E. McKenney
2004-02-19 19:47                   ` Paul E. McKenney
2004-02-20  5:07                   ` Daniel Phillips
2004-02-20  5:07                     ` Daniel Phillips
2004-02-20 12:02                     ` Paul E. McKenney
2004-02-20 12:02                       ` Paul E. McKenney
2004-02-20 20:37                       ` Daniel Phillips [this message]
2004-02-20 20:37                         ` Daniel Phillips
2004-02-20 14:01                         ` Paul E. McKenney
2004-02-20 14:01                           ` Paul E. McKenney
2004-02-20 23:00                           ` Daniel Phillips
2004-02-20 23:00                             ` Daniel Phillips
2004-02-20 16:17                             ` Paul E. McKenney
2004-02-20 16:17                               ` Paul E. McKenney
2004-02-21  3:19                               ` Daniel Phillips
2004-02-21  3:19                                 ` Daniel Phillips
2004-02-21 19:00                               ` Daniel Phillips
2004-02-22 23:39                                 ` Paul E. McKenney
2004-02-25 21:04                                   ` [RFC] Distributed mmap API Daniel Phillips
2004-02-25 21:04                                     ` Daniel Phillips
2004-02-25 19:12                                     ` Paul E. McKenney
2004-02-25 19:12                                       ` Paul E. McKenney
2004-02-25 19:14                                     ` Paul E. McKenney
2004-02-25 19:14                                       ` Paul E. McKenney
2004-02-25 22:07                                     ` Andrew Morton
2004-02-25 22:07                                       ` Andrew Morton
2004-02-25 22:07                                       ` Daniel Phillips
2004-02-25 22:07                                         ` Daniel Phillips
2004-02-25 22:16                                         ` Andrew Morton
2004-02-25 22:16                                           ` Andrew Morton
2004-02-25 22:46                                           ` Daniel Phillips
2004-02-25 22:46                                             ` Daniel Phillips
2004-03-03  3:00                                       ` Daniel Phillips
2004-03-03  3:00                                         ` Daniel Phillips
2004-03-03  3:15                                         ` Andrew Morton
2004-03-03  3:15                                           ` Andrew Morton
2004-03-03 13:06                                           ` Daniel Phillips
2004-03-03 13:06                                             ` Daniel Phillips
2004-03-04 18:55                                             ` Paul E. McKenney
2004-03-04 18:55                                               ` Paul E. McKenney
2004-02-20 21:17                         ` Non-GPL export of invalidate_mmap_range Christoph Hellwig
2004-02-20 21:17                           ` Christoph Hellwig
2004-02-20 22:16                           ` Daniel Phillips
2004-02-20 22:16                             ` Daniel Phillips
2004-02-20 23:56                             ` GFS requirements (was: Non-GPL export of invalidate_mmap_range) Lars Marowsky-Bree
2004-02-21  3:16                               ` Daniel Phillips
2004-02-21 14:17                                 ` Lars Marowsky-Bree
2004-02-21 19:09                                   ` Daniel Phillips
2004-02-22 10:37                                     ` Lars Marowsky-Bree
2004-02-24 18:26                                       ` Daniel Phillips
2004-02-18 12:12     ` Non-GPL export of invalidate_mmap_range Dominik Kubla
2004-02-18 12:12       ` Dominik Kubla
     [not found]   ` <24651326.1077037044@42.150.104.212.access.eclipse.net.uk>
2004-02-18 13:13     ` Christoph Hellwig
2004-02-17 22:22 ` David Weinehall
2004-02-17 22:22   ` David Weinehall

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=200402201535.47848.phillips@arcor.de \
    --to=phillips@arcor.de \
    --cc=akpm@osdl.org \
    --cc=hch@infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=paulmck@us.ibm.com \
    --cc=sct@redhat.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.