Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757513Ab2HUMfW (ORCPT ); Tue, 21 Aug 2012 08:35:22 -0400 Received: from caramon.arm.linux.org.uk ([78.32.30.218]:41989 "EHLO caramon.arm.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755363Ab2HUMfS (ORCPT ); Tue, 21 Aug 2012 08:35:18 -0400 Date: Tue, 21 Aug 2012 13:34:51 +0100 From: Russell King - ARM Linux To: Hiroshi Doyu Cc: Marek Szyprowski , "linux-arm-kernel@lists.infradead.org" , "linaro-mm-sig@lists.linaro.org" , "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" , Kyungmin Park , Arnd Bergmann , Chunsang Jeong , Krishna Reddy , Konrad Rzeszutek Wilk , Subash Patel , Minchan Kim Subject: Re: [PATCHv6 2/2] ARM: dma-mapping: remove custom consistent dma region Message-ID: <20120821123451.GV18957@n2100.arm.linux.org.uk> References: <1343636899-19508-1-git-send-email-m.szyprowski@samsung.com> <1343636899-19508-3-git-send-email-m.szyprowski@samsung.com> <20120821142235.97984abc9ad98d01015a3338@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120821142235.97984abc9ad98d01015a3338@nvidia.com> User-Agent: Mutt/1.5.19 (2009-01-05) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 684 Lines: 13 On Tue, Aug 21, 2012 at 02:22:35PM +0300, Hiroshi Doyu wrote: > The following "__get_vm_area_node()" can take gfp_mask, it means that > this function is expected to be called from atomic context, but why > it's _NOT_ allowed _ONLY_ from interrupt context? One reason is it takes read/write locks without using the IRQ safe versions for starters (vmap_area_lock and vmlist_lock). I don't see any other reasons in that bit of code though. -- 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/