lkml.org 
[lkml]   [2000]   [Dec]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    SubjectRe: [patch-2.4.0-test12-pre5] optimized get_empty_filp()
    From

    [Tigran Aivazian]
    > The only reason one could think of was to "hold the lock for as short
    > time as possible" but a minute's thought reveals that such reason is
    > invalid (i.e. one is more likely to waste time spinning on the lock
    > than to save it by dropping/retaking it, given the relative duration
    > of the instructions we execute there without the lock).

    If there is no contention, you do not spin, no time wasted

    If there *is* contention, you deserialize the routine just a little
    bit, which is generally a Good Thing.

    Whether a memset of 92 bytes (on 32-bit arch), plus an atomic_set(),
    are worth deserializing, I do not know.

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

    \
     
     \ /
      Last update: 2005-03-22 12:51    [W:0.023 / U:1.572 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site