From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965576AbdAEBAp (ORCPT ); Wed, 4 Jan 2017 20:00:45 -0500 Received: from mail-pg0-f67.google.com ([74.125.83.67]:33940 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754561AbdAEBAl (ORCPT ); Wed, 4 Jan 2017 20:00:41 -0500 Date: Thu, 5 Jan 2017 10:00:50 +0900 From: Sergey Senozhatsky To: Petr Mladek Cc: Sergey Senozhatsky , Andrew Morton , Linus Torvalds , Jan Kara , Tejun Heo , Calvin Owens , Steven Rostedt , Ingo Molnar , Peter Zijlstra , Andy Lutomirski , Peter Hurley , linux-kernel@vger.kernel.org, Sergey Senozhatsky Subject: Re: [PATCHv7 8/8] printk: convert the rest to printk-safe Message-ID: <20170105010050.GA480@jagdpanzerIV.localdomain> References: <20161227141611.940-1-sergey.senozhatsky@gmail.com> <20161227141611.940-9-sergey.senozhatsky@gmail.com> <20170104162825.GU14894@pathway.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170104162825.GU14894@pathway.suse.cz> User-Agent: Mutt/1.7.2 (2016-11-26) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On (01/04/17 17:28), Petr Mladek wrote: > On Tue 2016-12-27 23:16:11, Sergey Senozhatsky wrote: > > This patch converts the rest of logbuf users (which are > > out of printk recursion case, but can deadlock in printk). > > To make printk-safe usage easier the patch introduces 4 > > helper macros: > > - logbuf_lock_irq()/logbuf_unlock_irq() > > lock/unlock the logbuf lock and disable/enable local IRQ > > > > - logbuf_lock_irqsave(flags)/logbuf_unlock_irqrestore(flags) > > lock/unlock the logbuf lock and saves/restores local IRQ state > > > > Signed-off-by: Sergey Senozhatsky > > I like that it is so straigforward using the new macros. It is great > that you discovered this before we finished the patchset. > > Reviewed-by: Petr Mladek thanks. -ss