mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "David S. Miller" <davem@redhat.com>
To: kernel@tekno-soft.it
Cc: rasmus@jaquet.dk, torvalds@transmeta.com, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] mm->rss is modified without page_table_lock held
Date: Sat, 9 Dec 2000 07:00:19 -0800	[thread overview]
Message-ID: <200012091500.HAA20614@pizda.ninka.net> (raw)
In-Reply-To: <4.3.2.7.2.20001209160215.00c901e0@mail.tekno-soft.it> (message from Roberto Fichera on Sat, 09 Dec 2000 16:07:03 +0100)
In-Reply-To: <4.3.2.7.2.20001209152806.00c8e7b0@mail.tekno-soft.it> <4.3.2.7.2.20001209111347.00c829f0@mail.tekno-soft.it> <4.3.2.7.2.20001209111347.00c829f0@mail.tekno-soft.it> <4.3.2.7.2.20001209152806.00c8e7b0@mail.tekno-soft.it> <4.3.2.7.2.20001209160215.00c901e0@mail.tekno-soft.it>

   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/

  parent reply	other threads:[~2000-12-09 15:46 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-12-08 20:29 Rasmus Andersen
2000-12-08 20:36 ` Mark Hahn
2000-12-08 20:58   ` David S. Miller
2000-12-09 10:25 ` Roberto Fichera
2000-12-09 12:32   ` David S. Miller
2000-12-09 12:43   ` Rasmus Andersen
2000-12-09 14:42   ` David S. Miller
2000-12-09 22:38     ` Albert D. Cahalan
2000-12-09 14:48   ` Roberto Fichera
2000-12-09 15:00   ` David S. Miller [this message]
2000-12-09 15:07   ` Roberto Fichera
2000-12-09 18:11   ` Roberto Fichera

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200012091500.HAA20614@pizda.ninka.net \
    --to=davem@redhat.com \
    --cc=kernel@tekno-soft.it \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rasmus@jaquet.dk \
    --cc=torvalds@transmeta.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®