mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Artem Bityutskiy <dedekind1@gmail.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: Artem.Bityutskiy@nokia.com,
	ext KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>,
	Seiji Aguchi <seiji.aguchi@hds.com>,
	"simon.kagstrom@netinsight.net" <simon.kagstrom@netinsight.net>,
	"David.Woodhouse@intel.com" <David.Woodhouse@intel.com>,
	"anders.grafstrom@netinsight.net"
	<anders.grafstrom@netinsight.net>,
	"jason.wessel@windriver.com" <jason.wessel@windriver.com>,
	"jslaby@suse.cz" <jslaby@suse.cz>,
	"jmorris@namei.org" <jmorris@namei.org>,
	"eparis@redhat.com" <eparis@redhat.com>,
	"hch@lst.de" <hch@lst.de>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"dle-develop@lists.sourceforge.net" 
	<dle-develop@lists.sourceforge.net>,
	Satoru Moriya <satoru.moriya@hds.com>
Subject: Re: [RFC][Patch] Adding kmsg_dump() to reboot/halt/poweroff/emergency_restart path
Date: Thu, 28 Oct 2010 22:58:04 +0300	[thread overview]
Message-ID: <1288295884.1766.10.camel@brekeke> (raw)
In-Reply-To: <20101027163505.c88095da.akpm@linux-foundation.org>

On Wed, 2010-10-27 at 16:35 -0700, Andrew Morton wrote:
> > > I think mtdoops user don't want to dump logs if a system reboot/poweroff
> > > safely because mtd device have write count limitation. and they are main
> > > user of kmsg_dump().
> 
> mtdoops was the only user until ramoops came along.
> 
> > Right, at least this is how we use mtdoops - we log crashes.
> 
> Fair enough.  So I suppose the existing clients (mtdoops_do_dump and
> ramoops_do_dump) should be altered to inspect the `reason' argument,
> and return if it isn't KMSG_DUMP_OOPS, KMSG_DUMP_PANIC or
> KMSG_DUMP_KEXEC (I assume?)

I agree, then mtdoops/ramoops can be tweaked to handle other messages.

> If that sounds suitable then I'd ask Seiji to update and resend the
> patch, along with a complete changelog as earlier dicussed.

Yes, I think the patch makes perfect sense, just the existing
functionality should not be changed as a side effect.

> I'd suggest doing it as two patches, the first of which alters mtdoops
> and ramoops to perform their actions only for the appropriate `reason'
> values.

Right, thanks.

-- 
Best Regards,
Artem Bityutskiy (Битюцкий Артём)


      reply	other threads:[~2010-10-28 19:58 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-18 22:24 Seiji Aguchi
2010-10-18 22:33 ` Andrew Morton
2010-10-27 19:44   ` Seiji Aguchi
2010-11-03 21:50     ` Aaron Durbin
2010-11-04  7:20       ` Artem Bityutskiy
2010-10-19  8:52 ` KOSAKI Motohiro
2010-10-19  8:51   ` Artem Bityutskiy
2010-10-27 23:35     ` Andrew Morton
2010-10-28 19:58       ` Artem Bityutskiy [this message]

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=1288295884.1766.10.camel@brekeke \
    --to=dedekind1@gmail.com \
    --cc=Artem.Bityutskiy@nokia.com \
    --cc=David.Woodhouse@intel.com \
    --cc=akpm@linux-foundation.org \
    --cc=anders.grafstrom@netinsight.net \
    --cc=dle-develop@lists.sourceforge.net \
    --cc=eparis@redhat.com \
    --cc=hch@lst.de \
    --cc=jason.wessel@windriver.com \
    --cc=jmorris@namei.org \
    --cc=jslaby@suse.cz \
    --cc=kosaki.motohiro@jp.fujitsu.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=satoru.moriya@hds.com \
    --cc=seiji.aguchi@hds.com \
    --cc=simon.kagstrom@netinsight.net \
    /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

all inboxes | Powered by JetHome®