[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20101118234216.GH19821@mail.oracle.com>
Date: Thu, 18 Nov 2010 15:42:16 -0800
From: Joel Becker <Joel.Becker@...cle.com>
To: David Sterba <dsterba@...e.cz>
Cc: ocfs2-devel@....oracle.com, linux-kernel@...r.kernel.org,
mfasheh@...e.com
Subject: Re: fs/ocfs2/dlm: Use GFP_ATOMIC under spin_lock
On Tue, Nov 02, 2010 at 11:36:02PM +0100, David Sterba wrote:
> coccinelle check scripts/coccinelle/locks/call_kern.cocci found that
> in fs/ocfs2/dlm/dlmdomain.c an allocation with GFP_KERNEL is done
> with locks held:
>
> dlm_query_region_handler
> spin_lock(dlm_domain_lock)
> dlm_match_regions
> kmalloc(GFP_KERNEL)
>
> Change it to GFP_ATOMIC.
>
> Signed-off-by: David Sterba <dsterba@...e.cz>
> CC: Joel Becker <joel.becker@...cle.com>
> CC: Mark Fasheh <mfasheh@...e.com>
> CC: ocfs2-devel@....oracle.com
This patch is now in the fixes branch of ocfs2.git.
Joel
--
"Behind every successful man there's a lot of unsuccessful years."
- Bob Brown
Joel Becker
Senior Development Manager
Oracle
E-mail: joel.becker@...cle.com
Phone: (650) 506-8127
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists