diff options
author | Michel Lespinasse <walken@google.com> | 2011-02-01 02:03:41 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-02-02 00:20:50 +0100 |
commit | fdf4c587a793ba87935e38e7f25a9540bc9a7b95 (patch) | |
tree | c134f1772c46e2c5214550aaf08c58b36d755a55 /Documentation/ia64 | |
parent | gpu/stub: fix acpi_video build error, fix stub kconfig dependencies (diff) | |
download | linux-fdf4c587a793ba87935e38e7f25a9540bc9a7b95.tar.xz linux-fdf4c587a793ba87935e38e7f25a9540bc9a7b95.zip |
mlock: operate on any regions with protection != PROT_NONE
As Tao Ma noticed, change 5ecfda0 breaks blktrace. This is because
blktrace mmaps a file with PROT_WRITE permissions but without PROT_READ,
so my attempt to not unnecessarity break COW during mlock ended up
causing mlock to fail with a permission problem.
I am proposing to let mlock ignore vma protection in all cases except
PROT_NONE. In particular, mlock should not fail for PROT_WRITE regions
(as in the blktrace case, which broke at 5ecfda0) or for PROT_EXEC
regions (which seem to me like they were always broken).
Signed-off-by: Michel Lespinasse <walken@google.com>
Acked-by: Rik van Riel <riel@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Documentation/ia64')
0 files changed, 0 insertions, 0 deletions