From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935671Ab3BTNwT (ORCPT ); Wed, 20 Feb 2013 08:52:19 -0500 Received: from mail-ea0-f182.google.com ([209.85.215.182]:64802 "EHLO mail-ea0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757742Ab3BTNwQ (ORCPT ); Wed, 20 Feb 2013 08:52:16 -0500 Date: Wed, 20 Feb 2013 14:52:11 +0100 From: Ingo Molnar To: "Rafael J. Wysocki" Cc: Mandeep Singh Baines , linux-kernel@vger.kernel.org, Oleg Nesterov , Tejun Heo , Andrew Morton , Ingo Molnar Subject: Re: [PATCH v3] lockdep: check that no locks held at freeze time Message-ID: <20130220135211.GA11816@gmail.com> References: <20130216170605.GC4910@redhat.com> <1361325468-7998-1-git-send-email-msb@chromium.org> <20130220103719.GA7691@gmail.com> <7488660.sdbECaVo1t@vostro.rjw.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7488660.sdbECaVo1t@vostro.rjw.lan> 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 * Rafael J. Wysocki wrote: > On Wednesday, February 20, 2013 11:37:19 AM Ingo Molnar wrote: > > > > * Mandeep Singh Baines wrote: > > > > > We shouldn't try_to_freeze if locks are held. Verified that > > > I get no lockdep warnings after applying this patch and > > > "vfork: don't freezer_count() for in-kernel users of CLONE_VFORK". > > > > > > Changes since v1: > > > * LKML: <20130215111635.GA26955@gmail.com> Ingo Molnar > > > * Added a msg string that gets passed in. > > > * LKML: <20130215154449.GD30829@redhat.com> Oleg Nesterov > > > * Check PF_NOFREEZE in try_to_freeze(). > > > Changes since v2: > > > * LKML: <20130216170605.GC4910@redhat.com> Oleg Nesterov > > > * Avoid unnecessary PF_NOFREEZE check when !CONFIG_LOCKDEP. > > > * Mandeep Singh Baines > > > * Generalize an exit specific printk. > > > > > > Signed-off-by: Mandeep Singh Baines > > > CC: Oleg Nesterov > > > CC: Tejun Heo > > > CC: Andrew Morton > > > CC: Rafael J. Wysocki > > > CC: Ingo Molnar > > > > Looks good to me now. > > > > Acked-by: Ingo Molnar > > > > Which tree should this go through? > > Well, I can take it if that's OK. Sure, that's fine with me - this is mainly a freezer feature after all. Thanks, Ingo