From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760858AbdADQ2b (ORCPT ); Wed, 4 Jan 2017 11:28:31 -0500 Received: from mx2.suse.de ([195.135.220.15]:50381 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751186AbdADQ2a (ORCPT ); Wed, 4 Jan 2017 11:28:30 -0500 Date: Wed, 4 Jan 2017 17:28:25 +0100 From: Petr Mladek To: Sergey Senozhatsky Cc: 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: <20170104162825.GU14894@pathway.suse.cz> References: <20161227141611.940-1-sergey.senozhatsky@gmail.com> <20161227141611.940-9-sergey.senozhatsky@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20161227141611.940-9-sergey.senozhatsky@gmail.com> 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 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 Best Regards, Petr PS: All patches look fine to me. I am going to do some tests before I could say a final word. I guess that it will be fine and we will be able to push it to linux-next.