lkml.org 
[lkml]   [2002]   [Aug]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [patch 6/12] hold atomic kmaps across generic_file_read
    Linus Torvalds wrote:
    > For people like that, wouldn't it be nice to just be able to tell them: if
    > you do X, we guarantee that you'll get optimal zero-copy performance for
    > reading a file.

    Don't forget to include the need for mmap(... MAP_ANON ...) prior to the
    read.

    Given the user will need to establish a new mapping anyway, why pussy
    foot around with subtleties? Just add a MAP_PREFAULT flag to mmap(),
    which reads the whole file and maps it before returning.

    -- Jamie
    -
    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 13:27    [W:2.100 / U:0.088 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site