Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755546Ab3EMXqY (ORCPT ); Mon, 13 May 2013 19:46:24 -0400 Received: from mail-pa0-f45.google.com ([209.85.220.45]:39093 "EHLO mail-pa0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755350Ab3EMXqX (ORCPT ); Mon, 13 May 2013 19:46:23 -0400 Date: Mon, 13 May 2013 17:42:16 -0400 From: Greg Kroah-Hartman To: Robert Love Cc: Shankar Brahadeeswaran , Dan Carpenter , LKML , Bjorn Bringert , devel , Hugh Dickins , Anjana V Kumar , Dad , linux-next Subject: Re: [PATCH -next] ashmem: Fix ashmem_shrink deadlock. Message-ID: <20130513214216.GA23743@kroah.com> References: <1367416573-5430-1-git-send-email-rlove@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1367416573-5430-1-git-send-email-rlove@google.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 795 Lines: 21 On Wed, May 01, 2013 at 09:56:13AM -0400, Robert Love wrote: > Don't acquire ashmem_mutex in ashmem_shrink if we've somehow recursed into the > shrinker code from within ashmem. Just bail out, avoiding a deadlock. This is > fine, as ashmem cache pruning is advisory anyhow. > > Signed-off-by: Robert Love > --- > drivers/staging/android/ashmem.c | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) Based on Andrew's review comments, I'll drop this from my queue and wait for a "better" fix for this. thanks, greg k-h -- 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/