Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752194AbbHCH60 (ORCPT ); Mon, 3 Aug 2015 03:58:26 -0400 Received: from smtprelay0126.hostedemail.com ([216.40.44.126]:60650 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751605AbbHCH6Z (ORCPT ); Mon, 3 Aug 2015 03:58:25 -0400 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::::,RULES_HIT:41:355:379:541:599:800:960:973:988:989:1260:1277:1311:1313:1314:1345:1359:1373:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2393:2553:2559:2562:2693:2828:3138:3139:3140:3141:3142:3352:3622:3865:3866:3867:3868:3871:3872:4321:5007:6119:6120:6261:6742:7901:7903:7904:7974:10004:10400:10848:11232:11658:11914:12517:12519:12740:13069:13255:13311:13357:14096:14097:21080,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:none,Custom_rules:0:0:0 X-HE-Tag: stem44_65aa61fbb0a5d X-Filterd-Recvd-Size: 2293 Message-ID: <1438588697.30149.12.camel@perches.com> Subject: Re: [PATCH V2] staging: android: lowmemorykiller: imporve lmk to avoid deadlock issue From: Joe Perches To: Dan Carpenter Cc: "Wang, Biao" , "gregkh@linuxfoundation.org" , "arve@android.com" , "riandrews@android.com" , "devel@driverdev.osuosl.org" , "linux-kernel@vger.kernel.org" , "Zhang, Di" , "Li, Fei" Date: Mon, 03 Aug 2015 00:58:17 -0700 In-Reply-To: <20150803061556.GS5096@mwanda> References: <09CB0B4607EB8F4DB7E0BE3B06BFBD051DA2E849@SHSMSX101.ccr.corp.intel.com> <20150803061556.GS5096@mwanda> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.16.0-fta1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1324 Lines: 35 On Mon, 2015-08-03 at 09:15 +0300, Dan Carpenter wrote: > On Mon, Aug 03, 2015 at 05:53:22AM +0000, Wang, Biao wrote: > > Consider the following case: > > Task A trigger lmk with a lock held, while task B try to > > get this lock, but unfortunately B is the very culprit task lmk > > select to > > kill. Then B will never be killed, and A will forever select B to > > kill. > > Such dead lock will trigger softlock up issue. > > > > This patch try to pick the next task to break this loop. > > > > Signed-off-by: Wang Biao > > Reviewed-by: Zhang Di > > Reviewed-by: Dan Carpenter > > I don't really feel comfortable saying I reviewed this code. I just > commented on a few process issues. I don't know the subsystem well > enough to give it a seal of approval. > > > Reviewed-by: Joe Perches Please don't say I reviewed this either. I may have commented on it, but I certainly did't add a "Reviewed-by" signature. Please don't add signatures unless people specifically state so. -- 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/