lkml.org 
[lkml]   [2004]   [Dec]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: Anticipatory prefaulting in the page fault handler V1
    Date
    On Tuesday 14 December 2004 02:10, Christoph Lameter wrote:
    > On Mon, 13 Dec 2004, Akinobu Mita wrote:

    > > 3) don't set_pte() for the entry which already have been set
    >
    > Not sure how this could have happened in the patch.

    This is why I inserted pte_none() for each page_table in case of
    read fault too.

    If read access fault occured for the address "addr".
    It is completely unnecessary to check by pte_none() to the page_table
    for "addr". Because page_table_lock has never been released until
    do_anonymous_page returns (in case of read access fault)

    But there is not any guarantee that the page_tables for addr+PAGE_SIZE,
    addr+2*PAGE_SIZE, ... have not been mapped yet.

    Anyway, I will try your V2 patch.



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

    \
     
     \ /
      Last update: 2005-03-22 14:08    [W:8.634 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site