Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760598AbZJIJkl (ORCPT ); Fri, 9 Oct 2009 05:40:41 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1760567AbZJIJkk (ORCPT ); Fri, 9 Oct 2009 05:40:40 -0400 Received: from cam-admin0.cambridge.arm.com ([193.131.176.58]:53609 "EHLO cam-admin0.cambridge.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760553AbZJIJkj (ORCPT ); Fri, 9 Oct 2009 05:40:39 -0400 Subject: [PATCH] kmemleak: Use GFP_ATOMIC for early_alloc(). To: Linus Torvalds From: Catalin Marinas Cc: Tetsuo Handa , linux-kernel@vger.kernel.org Date: Fri, 09 Oct 2009 10:39:24 +0100 Message-ID: <20091009093854.5226.14374.stgit@pc1117.cambridge.arm.com> In-Reply-To: <20091009093028.4365.4391.stgit@pc1117.cambridge.arm.com> References: <20091009093028.4365.4391.stgit@pc1117.cambridge.arm.com> User-Agent: StGit/0.15-rc3-10-g00be MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 09 Oct 2009 09:39:25.0037 (UTC) FILETIME=[634EA9D0:01CA48C4] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1127 Lines: 33 From: Tetsuo Handa We can't use GFP_KERNEL inside rcu_read_lock(). Signed-off-by: Tetsuo Handa Signed-off-by: Catalin Marinas --- Please ignore [PATCH 1/2] with the same subject as it didn't have the correct author information. Thanks. mm/kmemleak.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/mm/kmemleak.c b/mm/kmemleak.c index 4ea4510..a617518 100644 --- a/mm/kmemleak.c +++ b/mm/kmemleak.c @@ -833,7 +833,7 @@ static void early_alloc(struct early_log *log) */ rcu_read_lock(); object = create_object((unsigned long)log->ptr, log->size, - log->min_count, GFP_KERNEL); + log->min_count, GFP_ATOMIC); spin_lock_irqsave(&object->lock, flags); for (i = 0; i < log->trace_len; i++) object->trace[i] = log->trace[i]; -- 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/