From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753281AbdJUIPI (ORCPT ); Sat, 21 Oct 2017 04:15:08 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:47300 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752910AbdJUIPH (ORCPT ); Sat, 21 Oct 2017 04:15:07 -0400 Date: Sat, 21 Oct 2017 10:15:13 +0200 From: Greg Kroah-Hartman To: Sherry Yang Cc: linux-kernel@vger.kernel.org, "open list:ANDROID DRIVERS" , Arve =?iso-8859-1?B?SGr4bm5lduVn?= , Riley Andrews , maco@google.com, tkjos@google.com Subject: Re: [PATCH v2 1/4] android: binder: Don't get mm from task Message-ID: <20171021081513.GA19354@kroah.com> References: <20171021005902.59586-1-sherryy@android.com> <20171021005902.59586-2-sherryy@android.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20171021005902.59586-2-sherryy@android.com> User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 20, 2017 at 08:58:58PM -0400, Sherry Yang wrote: > Use binder_alloc struct's mm_struct rather than getting > a reference to the mm struct through get_task_mm to > avoid a potential deadlock between lru lock, task lock and > dentry lock, since a thread can be holding the task lock > and the dentry lock while trying to acquire the lru lock. > > Acked-by: Arve Hjønnevåg > Signed-off-by: Sherry Yang > --- > drivers/android/binder_alloc.c | 22 +++++++++------------- > drivers/android/binder_alloc.h | 1 - > 2 files changed, 9 insertions(+), 14 deletions(-) I've applied these first 2 patches, but patches 3 and 4 I have already applied to my char-misc-next tree, right? thanks, greg k-h