Re: Bad page state with x86_64

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 26 Sep 2006 14:41:46 +0200, Nick Piggin <[email protected]>
wrote:

It is freeing a PageReserved page. You should ensure to balance your
reference counting on *each* page (or allocate a compound page and
treat it as a single one). When you map pages into userspace via
nopage or remap_pfn_range, you need to increment their count, which
gets decremented by the VM when they are unmapped.

Thanks a lot for your time and help. Still there are a few things a
seemingly don't understand correctly.
Do I understand you right, I don't have to "put_page" after calling
"get_page" in my no-page handler?
Also I'm wondering, why this code works flawlessly on 2.6.10 32-Bit and
several 2.4.x kernels 32-Bit and PPC and is failing to work on x86_64,
only. Do I have to do the "get/put_page" mechanism differnetly on x86_64?
Another question:
In my no-page handler, I reserve the physical page. I do have to clear the
reserve bit of those page after unmap, right? Or is this done implicitly
as well?

Again, thanks for your effort.
--
-------------------------------------------------------------------------

                            _/_/_/_/   Andreas Block
                           _/_/_/_/   Dipl.-Ing.
                          _/_/_/_/   [email protected]

      _/_/_/   _/_/_/_/_/_/_/      esd electronic system design gmbh
    _/   _/  _/             _/    Vahrenwalder Str. 207
   _/   _/    _/_/_/   _/   _/   D-30165 Hannover
   _/             _/  _/   _/   Phone: +49-511-37298-0
    _/_/_/_/_/_/_/   _/_/_/    Fax:   +49-511-37298-68
                              http://www.esd-electronics.com

-------------------------------------------------------------------------

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux