[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <987664A83D2D224EAE907B061CE93D5301EE4211E3@orsmsx505.amr.corp.intel.com>
Date: Tue, 27 Sep 2011 10:46:32 -0700
From: "Luck, Tony" <tony.luck@...el.com>
To: Don Zickus <dzickus@...hat.com>,
Seiji Aguchi <seiji.aguchi@....com>
CC: "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
Vivek Goyal <vgoyal@...hat.com>,
Matthew Garrett <mjg@...hat.com>,
"Chen, Gong" <gong.chen@...el.com>,
Andrew Morton <akpm@...ux-foundation.org>,
"dle-develop@...ts.sourceforge.net"
<dle-develop@...ts.sourceforge.net>,
Satoru Moriya <satoru.moriya@....com>
Subject: RE: [RFC][PATCH -next] pstore: replace spin_lock with
spin_trylock_irqsave in panic path
> Personally, I am not sure we want to abort here at the pstore layer, it
> should probably be aborted lower. There isn't any reason why we can't
> continue from a pstore perspective (we can just bust the spinlock).
But do we really have much chance at getting a real dump in this case?
The pstore buf_lock is protecting the memory that the backend uses to
save the data. If we can't get the lock, then we are going to conflict
using that buffer with whoever does have the lock. So we will probably
mess up whatever data they were trying to save, as well as not managing
to save our panic data. So this isn't just a back-end issue, it is
fundamental to the pstore layer (since it depends on this back end buffer).
This is a tough call - but I'm leaning a bit towards taking this patch.
I agree with your suggestion that we need a better comment by the "return"
(and also in the change log) saying why we are not saving the panic dmesg.
-Tony
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists