linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Andrea Arcangeli <andrea@suse.de>
To: Rik van Riel <riel@conectiva.com.br>
Cc: linux-mm@kvack.org
Subject: Re: filemap.c SMP bug in 2.4.0-test* (fwd)
Date: Fri, 18 Aug 2000 14:49:38 +0200 (CEST)	[thread overview]
Message-ID: <Pine.LNX.4.21.0008181443560.18597-100000@inspiron.random> (raw)
In-Reply-To: <Pine.LNX.4.21.0008172017450.16454-100000@duckman.distro.conectiva>

>Proc A                                Proc B
>page faults
>...
>read_swap_cache_async
>  lookup_swap_cache fails twice       page faults (same page)
>                                      ...
>                                      read_swap_cache_async
>  init of page info (insert in
>  hash tables...)

as first on proc B read_swap_cache_async can't be started in between the
second fail of the lookup and the init of the page info and insert
hashtables on proc A, because of the big kernel lock.

>                                      lookup_swap_cache
>	                                 __find_page_nolock
>                                         (succeeds, page not active
>                                          activate)
>

The page is inserted locked into the hashtable and lookup_swap_cache uses
find_lock_page so it can't race.

Andrea

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/

      parent reply	other threads:[~2000-08-18 12:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-08-17 23:18 Rik van Riel
2000-08-18 11:50 ` Stephen C. Tweedie
2000-08-18 12:49 ` Andrea Arcangeli [this message]

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=Pine.LNX.4.21.0008181443560.18597-100000@inspiron.random \
    --to=andrea@suse.de \
    --cc=linux-mm@kvack.org \
    --cc=riel@conectiva.com.br \
    /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