Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 25 Mar 2003 13:33:36 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 25 Mar 2003 13:33:36 -0500 Received: from phoenix.mvhi.com ([195.224.96.167]:13582 "EHLO phoenix.infradead.org") by vger.kernel.org with ESMTP id ; Tue, 25 Mar 2003 13:33:35 -0500 Date: Tue, 25 Mar 2003 18:44:42 +0000 (GMT) From: James Simmons To: Benjamin Herrenschmidt cc: Linus Torvalds , Linux Fbdev development list , Linux Kernel Mailing List Subject: Re: [BK FBDEV] A few more updates. In-Reply-To: <1048616901.10476.3.camel@zion.wanadoo.fr> 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: 767 Lines: 20 > You "fixed" it by using GFP_ATOMIC but didn't test the result of > kmalloc. That is very bad. GFP_ATOMIC can fail (return NULL), thus > you will crash the kernel under high memory pressure. > > I think the proper fix is, as you asked me, using a workqueue, > that way, you can both use GFP_KERNEL allocations, and avoid > the spinlock you added to fbmem.c, thus letting the fb_sync() > ops on fbdev's be able to block. Ug! The quick fix was a bad idea. I will work on the workqueue idea instead. Ignore the pull. - 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/