public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Petr Mladek <pmladek@suse.com>
To: Steven Rostedt <rostedt@goodmis.org>
Cc: Andrew Morton <akpm@linux-foundation.org>,
	Linus Torvalds <torvalds@linux-foundation.org>,
	Peter Zijlstra <peterz@infradead.org>,
	Sergey Senozhatsky <sergey.senozhatsky@gmail.com>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] MAINTAINERS: Add printk maintainers
Date: Thu, 15 Dec 2016 15:34:43 +0100	[thread overview]
Message-ID: <20161215143443.GA1053@pathway.suse.cz> (raw)
In-Reply-To: <20161215084815.4d479755@gandalf.local.home>

On Thu 2016-12-15 08:48:15, Steven Rostedt wrote:
> On Thu, 15 Dec 2016 11:47:58 +0100
> Petr Mladek <pmladek@suse.com> wrote:
> 
> > I and Sergey would like to volunteer as printk code maintainers.
> > It is a code that everyone is using, various people fix bugs or
> > even add features but there is nobody really interested into
> > maintaining it.
> > 
> > I and Sergey have put a lot of effort into understanding the code
> > and related problems. We are working on solutions for some long
> > term problems. There is a nice summary from the Kernel Summit
> > presentation, see https://lwn.net/Articles/705938/
> > 
> > We have already started to use the gained knowledge and comment
> > on other printk-related patches. The official role should help
> > us to do it more effectively.
> > 
> > Our priorities are:
> > 
> >     + prevent deadlocks (printk_safe patchset, console locks)
> >     + prevent softlocks (async printk, console_sem and flushing)
> >     + handle other bugs/fixes/features as they come
> > 
> > with this in mind:
> > 
> >     + printk is used in different context
> >     + need special care in some modes, e.g. oops, panic, suspend
> >     + do best effort to store/show messages
> 
> Output immediately when they happen too. Perhaps we need a way to
> differentiate, "Show now" messages vs "This is info only, delay if
> needed".

We have to find the right balance. For example, we do not show
messages immediately in NMI context because there is a risk
of a deadlock. We have to somehow limit it in IRQ context to
avoid a softlock. In fact, we must avoid "infinite" output
even in normal context to avoid a livelock.

It must be decently configurable because a more risky handling
might help to debug some corner-case bugs.

The async printk patchset is important here. It will allow to do
output in a safe context using a dedicated kthread. I am sure that
it will need some tuning. We could discuss it more once Sergey
sends new version, ...


> >     + the code is already pretty complicated and twisted;
> >       support clean ups; always think hard if a feature/fix
> >       is worth any complication
> > 
> > Of course, it still will be much appreciated if other people review
> > printk patches.
> 
> I don't have a problem with you maintaining this, but put me down as a
> reviewer:
> 
> R:      Steven Rostedt <rostedt@goodmis.org>

Definitely. This is great news!

> > 
> > Regarding the workflow. It will be highly appreciated if the patches
> > might still go via Andrew's -mm tree at least for 4.10. In the long
> > term, we would like to make Andrew's life easier and handle printk
> > patches in an own git tree. But we first need to set it up and get
> > familiar with the processes.
> 
> Maybe Andrew should be a reviewer too. But I'll let him speak for
> himself.

It would be much appreciated as well.


> But anyway...
> 
> Acked-by: Steven Rostedt <rostedt@goodmis.org>

Thanks a lot for your input.

Best Regards,
Petr

  reply	other threads:[~2016-12-15 14:34 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-15 10:47 [PATCH] MAINTAINERS: Add printk maintainers Petr Mladek
2016-12-15 13:48 ` Steven Rostedt
2016-12-15 14:34   ` Petr Mladek [this message]
2016-12-15 17:12     ` Peter Zijlstra
2016-12-15 17:20       ` Steven Rostedt
2016-12-15 17:23         ` Peter Zijlstra
2016-12-15 17:36           ` Steven Rostedt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20161215143443.GA1053@pathway.suse.cz \
    --to=pmladek@suse.com \
    --cc=akpm@linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=peterz@infradead.org \
    --cc=rostedt@goodmis.org \
    --cc=sergey.senozhatsky@gmail.com \
    --cc=torvalds@linux-foundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox