lkml.org 
[lkml]   [2000]   [Dec]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH] mm->rss is modified without page_table_lock held
       Date: Sat, 09 Dec 2000 16:07:03 +0100
    From: Roberto Fichera <kernel@tekno-soft.it>

    8 bits for a spinlock ? What kind of use we have here ?

    Sparc32 (like some other older architectures) do not have a
    word atomic update instruction, but it does have a byte spinlock.
    To conserve space and implement the atomic update properly, we
    use a spinlock in the top byte of the word.

    All arch except Sparc32 don't have this trick.

    This may not be true forever.

    Also, this sematic was decided upon many eons ago, changing it a month
    before 2.4.0 just to deal with this mm->rss atomicity issue is not
    going to happen. The spinlock patch exists, and if nothing better
    comes up, we should just use it.

    Later,
    David S. Miller
    davem@redhat.com
    -
    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:52    [W:2.750 / U:0.364 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site