Re: [PATCH 08 of 11] anon-vma-rwsem
- From: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 7 May 2008 18:39:48 -0700 (PDT)
On Wed, 7 May 2008, Christoph Lameter wrote:
(That said, we're not running out of vm flags yet, and if we were, we
could just add another word. We're already wasting that space right now on
64-bit by calling it "unsigned long").
We sure have enough flags.
Oh, btw, I was wrong - we wouldn't want to mark the vma's (they are
unique), we need to mark the address spaces/anonvma's. So the flag would
need to be in the "struct anon_vma" (and struct address_space), not in the
vma itself. My bad. So the flag wouldn't be one of the VM_xyzzy flags, and
would require adding a new field to "struct anon_vma()"
And related to that brain-fart of mine, that obviously also means that
yes, the locking has to be stronger than "mm->mmap_sem" held for writing,
so yeah, it would have be a separate global spinlock (or perhaps a
blocking lock if you have some reason to protect anything else with this
too).
Linus
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: [PATCH 08 of 11] anon-vma-rwsem
- From: Andrea Arcangeli
- Re: [PATCH 08 of 11] anon-vma-rwsem
- References:
- [PATCH 08 of 11] anon-vma-rwsem
- From: Andrea Arcangeli
- Re: [PATCH 08 of 11] anon-vma-rwsem
- From: Linus Torvalds
- Re: [PATCH 08 of 11] anon-vma-rwsem
- From: Andrea Arcangeli
- Re: [PATCH 08 of 11] anon-vma-rwsem
- From: Linus Torvalds
- Re: [PATCH 08 of 11] anon-vma-rwsem
- From: Andrea Arcangeli
- Re: [PATCH 08 of 11] anon-vma-rwsem
- From: Andrew Morton
- Re: [PATCH 08 of 11] anon-vma-rwsem
- From: Andrea Arcangeli
- Re: [PATCH 08 of 11] anon-vma-rwsem
- From: Andrew Morton
- Re: [PATCH 08 of 11] anon-vma-rwsem
- From: Linus Torvalds
- Re: [PATCH 08 of 11] anon-vma-rwsem
- From: Christoph Lameter
- Re: [PATCH 08 of 11] anon-vma-rwsem
- From: Linus Torvalds
- Re: [PATCH 08 of 11] anon-vma-rwsem
- From: Christoph Lameter
- [PATCH 08 of 11] anon-vma-rwsem
- Prev by Date: Re: [PATCH 08 of 11] anon-vma-rwsem
- Next by Date: Re: ACPI: kmemcheck: Caught 16-bit read from freed memory (f7c12ec6)
- Previous by thread: Re: [PATCH 08 of 11] anon-vma-rwsem
- Next by thread: Re: [PATCH 08 of 11] anon-vma-rwsem
- Index(es):
Relevant Pages
|