Re: memory handling in pre5/pre6

From: Stephen C. Tweedie (sct@redhat.com)
Date: Tue Apr 18 2000 - 04:55:53 EST


Hi,

On Mon, Apr 17, 2000 at 07:23:30PM -0300, Rik van Riel wrote:
>
> /* page wholly truncated - free it */
> if (offset >= start) {
> + if (TryLockPage(page)) {
> + spin_unlock(&pagecache_lock);
> + goto repeat;
> + }

Bzzt. Methinks you need a wait_on_page() before the goto to avoid
a busy loop.

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



This archive was generated by hypermail 2b29 : Sun Apr 23 2000 - 21:00:12 EST