All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Zijlstra <a.p.zijlstra@chello.nl>
To: Hugh Dickins <hugh@veritas.com>
Cc: Jaya Kumar <jayakumar.lkml@gmail.com>,
	Andrew Morton <akpm@linux-foundation.org>,
	stefani@seibold.net, linux-kernel@vger.kernel.org,
	David Howells <dhowells@redhat.com>,
	linux-mm@kvack.org
Subject: Re: vm_ops.page_mkwrite() fails with vmalloc on 2.6.23
Date: Tue, 30 Oct 2007 16:51:02 +0100	[thread overview]
Message-ID: <1193759462.27652.88.camel@twins> (raw)
In-Reply-To: <Pine.LNX.4.64.0710301535270.9322@blonde.wat.veritas.com>

[-- Attachment #1: Type: text/plain, Size: 1334 bytes --]

On Tue, 2007-10-30 at 15:47 +0000, Hugh Dickins wrote:
> On Tue, 30 Oct 2007, Peter Zijlstra wrote:
> > On Tue, 2007-10-30 at 09:16 -0400, Jaya Kumar wrote:
> ....
> > > - defio mmap adds this vma to private list (equivalent of
> > > address_space or anon_vma)
> ....
> > > - foreach vma { foreach page { page_mkclean_one(page, vma) }
> > 
> > Yeah, page_mkclean_one(page, vma) will use vma_address() to obtain an
> > user-space address for the page in this vma using page->index and the
> > formula from the last email, this address is then used to walk the page
> > tables and obtain a pte.
> 
> I don't understand why you suggested an anon_vma, nor why Jaya is
> suggesting a private list.  All vmas mapping /dev/fb0 will be kept
> in the prio_tree rooted in its struct address_space (__vma_link_file
> in mm/mmap.c).  And page_mkclean gets page_mkclean_file to walk that
> very tree.  The missing part is just the setting of page->mapping to
> point to that struct address_space (and clearing it before finally
> freeing the pages), and the setting of page->index as you described.
> Isn't it?

Hmm, there is a thought. I had not considered that mapping a chardev
would have that effect.

I'd have to have a look at the actual code, but yeah, that might very
well work out. How silly of me.

Thanks!

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2007-10-30 15:51 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-22 14:40 vm_ops.page_mkwrite() fails with vmalloc on 2.6.23 Stefani Seibold
2007-10-29  7:40 ` Andrew Morton
2007-10-29  7:40   ` Andrew Morton
2007-10-29  8:17   ` Jaya Kumar
2007-10-29  8:17     ` Jaya Kumar
2007-10-29 10:11     ` Peter Zijlstra
2007-10-29 10:11       ` Peter Zijlstra
2007-10-29 12:35       ` Peter Zijlstra
2007-10-29 12:35         ` Peter Zijlstra
2007-10-29 14:28         ` Nick Piggin
2007-10-29 14:28           ` Nick Piggin
2007-10-29 17:01     ` Peter Zijlstra
2007-10-29 17:01       ` Peter Zijlstra
2007-10-29 17:51       ` Jaya Kumar
2007-10-29 17:51         ` Jaya Kumar
2007-10-29 18:17         ` Peter Zijlstra
2007-10-29 18:17           ` Peter Zijlstra
2007-10-29 22:16           ` Peter Zijlstra
2007-10-29 22:16             ` Peter Zijlstra
2007-10-30  1:22             ` Jaya Kumar
2007-10-30  1:22               ` Jaya Kumar
2007-10-30  9:56               ` Peter Zijlstra
2007-10-30 10:49                 ` Stefani Seibold
2007-10-30 10:49                   ` Stefani Seibold
2007-10-30 12:39                   ` Hugh Dickins
2007-10-30 12:39                     ` Hugh Dickins
2007-10-30 13:12                     ` Peter Zijlstra
2007-10-30 13:16                 ` Jaya Kumar
2007-10-30 13:16                   ` Jaya Kumar
2007-10-30 13:25                   ` Peter Zijlstra
2007-10-30 15:47                     ` Hugh Dickins
2007-10-30 15:47                       ` Hugh Dickins
2007-10-30 15:51                       ` Peter Zijlstra [this message]
2007-11-01  8:02                       ` Jaya Kumar
2007-11-01  8:02                         ` Jaya Kumar
  -- strict thread matches above, loose matches on Subject: below --
2007-10-22 14:45 Stefani Seibold
2007-10-22 16:37 ` Hugh Dickins
2007-10-22 17:03   ` Jaya Kumar
2007-10-22 17:17 ` Peter Zijlstra
2007-10-22 17:20   ` Peter Zijlstra

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=1193759462.27652.88.camel@twins \
    --to=a.p.zijlstra@chello.nl \
    --cc=akpm@linux-foundation.org \
    --cc=dhowells@redhat.com \
    --cc=hugh@veritas.com \
    --cc=jayakumar.lkml@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=stefani@seibold.net \
    /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.