Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sun, 28 Jul 2002 19:49:29 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sun, 28 Jul 2002 19:49:29 -0400 Received: from neon-gw-l3.transmeta.com ([63.209.4.196]:17415 "EHLO neon-gw.transmeta.com") by vger.kernel.org with ESMTP id ; Sun, 28 Jul 2002 19:49:27 -0400 Date: Sun, 28 Jul 2002 16:54:01 -0700 (PDT) From: Linus Torvalds To: Andrew Morton cc: lkml Subject: Re: [patch 2/13] remove pages from the LRU in __free_pages_ok() In-Reply-To: <3D439E10.67A839A5@zip.com.au> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 814 Lines: 23 On Sun, 28 Jul 2002, Andrew Morton wrote: > > There are some situations where a page's final release is performed by > put_page(). Such as in access_process_vm(). This tends to go BUG() > because the page is on the LRU. This is wrong. If that happens, then you should just make access_process_vm() use "page_cache_release()". That's what you basically make "__free_pages_ok()" do, but since you still have to add the BUG_ON() check to make clear that it is illegal to do this from an interrupt context, it's much better to just do this check statically. Linus - 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/