lkml.org 
[lkml]   [2011]   [Jul]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] pstore: change mutex locking to spin_locks
On Fri, Jul 22, 2011 at 04:21:14PM -0700, Tony Luck wrote:
> On Fri, Jul 22, 2011 at 3:39 PM, Luck, Tony <tony.luck@intel.com> wrote:
> > Yup - oops is the only one where the current kernel continues - all the
> > others (halt, reboot, kexec, panic) lead to the termination of the
> > current kernel - and thus no user processes that would be able to
> > see the shiny new entry in the pstore file system.
>
> Doh - I went to look at what it would take to fix this - and found that
> I'd already implemented it:
>
>
> if (reason == KMSG_DUMP_OOPS && pstore_is_mounted())
> pstore_mkfile(PSTORE_TYPE_DMESG, psinfo->name, id,
> psinfo->buf, hsize + l1_cpy + l2_cpy,
> CURRENT_TIME, psinfo);

Right, but it still has to be created with locks surrounding it. And the
question is what type of locks should we use. Mutexes don't work when
called from the NMI case and spinlocks don't seem to work when called from
the OOPs (pstore_mkfile) case.

Cheers,
Don


\
 
 \ /
  Last update: 2011-07-25 14:49    [W:1.027 / U:0.048 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site