lkml.org 
[lkml]   [1999]   [Oct]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: how to write get_block?
    On Fri, 8 Oct 1999, Alexander Viro wrote:

    >AFAICS. The next thing I'm going to do is a (dumb) implementation of
    >blocking rwlocks. write() being reader and truncate() - writer.

    To make the design of the code simpler write(2) should be a writer too.

    All the VM checks i_size without any lock. So if you don't want to play
    with everything you should grab the writer lock at the VFS layer if you
    know your path may change i_size in any way (and write definitely can).

    Andrea


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

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