public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Don Zickus <dzickus@redhat.com>
To: Huang Ying <ying.huang@intel.com>
Cc: "Luck, Tony" <tony.luck@intel.com>, LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] pstore: change mutex locking to spin_locks
Date: Fri, 22 Jul 2011 08:13:02 -0400	[thread overview]
Message-ID: <20110722121302.GB9732@redhat.com> (raw)
In-Reply-To: <4E28C552.8060803@intel.com>

On Fri, Jul 22, 2011 at 08:33:22AM +0800, Huang Ying wrote:
> On 07/22/2011 01:57 AM, Luck, Tony wrote:
> >>> Is it safe to call pstore_mkfile with IRQ disabled?
> >>>
> >>> pstore_mkfile -> d_alloc_name -> d_alloc -> kmem_cache_alloc(, GFP_KERNEL).
> >>
> >> Don't know.  But would that mean we would have to put the pstore_mkfile
> >> on a workqueue then or something similar?
> > 
> > That might be a good idea anyway.  In the "oops" case we'd like the file
> > to appear in the pstore filesystem if the system stayed healthy despite
> > the oops[1]. There isn't any reason why the pstore entry must appear instantly.
> > Delaying the creation would avoid running into problems related to the
> > oops.
> 
> For oops, it may be better to delay writing into something like
> workqueue.  But for panic, I think we should write the record to backend
> (such as ERST) as soon as possible.  So maybe it is better to write to
> backend as soon as possible and delay writing to pstore filesystem.

In the panic case do we care if the pstore fs is mounted (which leads us
to run pstore_mkfile)?

Actually it seems like most of the entry points into pstore_dumper would
not require the fs to create a new file.  I think the exception is an
oops.

Cheers,
Don

  reply	other threads:[~2011-07-22 12:13 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-20 20:56 [PATCH] pstore: change mutex locking to spin_locks Don Zickus
2011-07-21  0:40 ` Huang Ying
2011-07-21 12:27   ` Don Zickus
2011-07-21 17:57     ` Luck, Tony
2011-07-22  0:33       ` Huang Ying
2011-07-22 12:13         ` Don Zickus [this message]
2011-07-22 13:03           ` huang ying
2011-07-22 22:39           ` Luck, Tony
2011-07-22 23:21             ` Tony Luck
2011-07-25 12:47               ` Don Zickus

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=20110722121302.GB9732@redhat.com \
    --to=dzickus@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tony.luck@intel.com \
    --cc=ying.huang@intel.com \
    /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