From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752231AbcBKH7Q (ORCPT ); Thu, 11 Feb 2016 02:59:16 -0500 Received: from mail-lf0-f67.google.com ([209.85.215.67]:35067 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751172AbcBKH7O (ORCPT ); Thu, 11 Feb 2016 02:59:14 -0500 Date: Thu, 11 Feb 2016 16:57:20 +0900 From: Sergey Senozhatsky To: Petr Mladek Cc: Sergey Senozhatsky , Andrew Morton , Jan Kara , Tejun Heo , Kyle McMartin , Dave Jones , Calvin Owens , linux-kernel@vger.kernel.org, Sergey Senozhatsky Subject: Re: [RFC][PATCH v3 1/4] printk: move can_use_console out of console_trylock_for_printk Message-ID: <20160211075720.GA895@swordfish> References: <1453536913-9545-1-git-send-email-sergey.senozhatsky@gmail.com> <1453536913-9545-2-git-send-email-sergey.senozhatsky@gmail.com> <20160210164816.GG12548@pathway.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160210164816.GG12548@pathway.suse.cz> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Petr, On (02/10/16 17:48), Petr Mladek wrote: [..] > I would personally remove console_trylock_for_printk() already in this > patch. I mean to fold the 3rd patch into this one. will do. > > int printk_delay_msec __read_mostly; > > > @@ -2247,9 +2233,21 @@ void console_unlock(void) > > do_cond_resched = console_may_schedule; > > console_may_schedule = 0; > > > > +again: > > + /* > > + * We released the console_sem lock, so we need to recheck if > > + * cpu is online and (if not) is there at least one CON_ANYTIME > > + * console. > > + */ > > + if (!can_use_console()) { > > + console_locked = 0; > > + up_console_sem(); > > + return; > > + } > > This is a bug fix and a nice clean up together. > > Reviewed-by: Petr Mladek thanks. -ss