Re: lookup_swap_cache: waiting on a page without holding the count?

Stephen C. Tweedie (sct@redhat.com)
Thu, 24 Jun 1999 12:10:23 +0100 (BST)


Hi,

On 23 Jun 1999 18:13:28 +0200, Trond Myklebust
<trond.myklebust@fys.uio.no> said:

> Is the call to __wait_on_page that is made in the lookup_swap_cache
> function correct? Shouldn't we rather be doing the following in order
> to ensure the page is held during the wait?

It makes no difference at all as far as correctness is concerned. The
lock bit and wait queue semantics are all preserved over reuse of a
page.

--Stephen

-
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/