Re: [patch] futex-2.5.40-B5

From: Martin Wirth (Martin.Wirth@dlr.de)
Date: Wed Oct 02 2002 - 13:14:03 EST


Ingo,

in your updated futex patch you use get_page/put_page for page pinning.
But for reserved pages, put_page does not decrement the page counter, so
get_page should not be called for such pages. These was a patch included
in 2.5.40 which changed this the call to page_cache_get
(==get_page in current implementation) in get_user_pages to:

        if (!PageReserved(page))
                get_page(page);

So I think the futex code should do the same.

Martin

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Oct 07 2002 - 22:00:35 EST