Messages in this thread | | | From | "Luck, Tony" <> | Subject | RE: [RFC][PATCH] pstore: Skip spinlock when just one cpu is online | Date | Fri, 7 Dec 2012 22:17:09 +0000 |
| |
> This patch skips taking a psinfo->buf_lock when just one cpu is online > because stopped cpus turn to offline via smp_send_stop() > in some architectures like x86, powerpc or arm64.
That seems an impressive list of preconditions. So for this to help we need to have taken all but one cpu offline, then be in some code that is holding the pstore lock and get hit by an NMI which causes us to recurse into the pstore code.
Can all these things really happen (did you run into this problem on a real system?). Or is this just a theoretical problem. Ugly (but practical) hacks might be OK to solve real problems. But do we really want them to fix problems that actually never happen?
-Tony
| |