From: Hugh Dickins <hugh@veritas.com>
To: Dmitry Monakhov <dmonakhov@sw.ru>
Cc: Jes Sorensen <jes@sgi.com>, linux-kernel@vger.kernel.org
Subject: Re: [patch] mm: recheck lock rlim after f_op->mmap() method
Date: Tue, 10 Jul 2007 20:48:31 +0100 (BST) [thread overview]
Message-ID: <Pine.LNX.4.64.0707102043090.2063@blonde.wat.veritas.com> (raw)
In-Reply-To: <20070710175331.GA23173@dnb>
[-- Attachment #1: Type: TEXT/PLAIN, Size: 1063 bytes --]
On Tue, 10 Jul 2007, Dmitry Monakhov wrote:
> On 18:27 Втр 10 Июл , Hugh Dickins wrote:
> > Or would this simpler patch be the right one? I suspect the
> > mspec driver only says VM_LOCKED because of a deep-seated but
> > irrational fear that its pages might fall into reclaim.
> No mspec is not the only one :( , in my case it was fglrx (ati driver).
Ah, then fglrx is wrong too. We don't want to check locked_vm,
but we don't much want it to wrap negative later. Perhaps we
should mask VM_LOCKED off, perhaps we should BUG, perhaps we
should ask ATI/AMD to change it (a BUG would be persuasive ;)
> BTW: where is comment about it in do_mmap_pgoff:
Sorry, I don't understand. You'd like a comment saying which flags
the driver may change and which it may not? Hmmm... not today.
> /* Can addr have changed??
> *
> * Answer: Yes, several device drivers can do
> * it in their
> * f_op->mmap method. -DaveM
> */
> addr = vma->vm_start;
> pgoff = vma->vm_pgoff;
> vm_flags = vma->vm_flags;
Hugh
next prev parent reply other threads:[~2007-07-10 19:49 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-09 18:49 Dmitry Monakhov
2007-07-10 17:27 ` Hugh Dickins
2007-07-10 17:53 ` Dmitry Monakhov
2007-07-10 19:48 ` Hugh Dickins [this message]
2007-07-11 8:39 ` Jes Sorensen
2007-07-11 18:24 ` Hugh Dickins
2007-07-11 9:32 ` Christoph Hellwig
2007-07-11 10:12 ` Dmitry Monakhov
2007-07-11 10:14 ` Christoph Hellwig
2007-07-11 18:03 ` Hugh Dickins
2007-07-13 9:53 ` Christoph Hellwig
2007-07-13 8:13 ` Andrew Morton
2007-07-13 13:02 ` 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.64.0707102043090.2063@blonde.wat.veritas.com \
--to=hugh@veritas.com \
--cc=dmonakhov@sw.ru \
--cc=jes@sgi.com \
--cc=linux-kernel@vger.kernel.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
Powered by JetHome