[lkml]   [2002]   [Apr]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: vmalloc comments patch


    > + * To give a safety margin, the linear address starts about 8MB after the end
    > + * of physical memory at VMALLOC_START. This is to try and catch memory
    > + * overruns.

    Thats architecture dependent. On ppc64 for example the kernel text
    starts at 0xC000000000000000 and the vmalloc region starts at
    0xD000000000000000, 2^60 bits apart.

    > + /* The page table is unlocked because we don't need to traverse
    > + * the page tables while a page is been allocated. As
    > + * alloc_page could block for a long time, let go the lock
    > + */
    > spin_unlock(&init_mm.page_table_lock);
    > page = alloc_page(gfp_mask);
    > spin_lock(&init_mm.page_table_lock);

    Since alloc_page can sleep we must drop the spinlock.

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 13:25    [W:0.021 / U:3.052 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site