[lkml]   [2019]   [Jan]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectQuestion about qspinlock nest
Hi Maintainer,

There is a question confused me for days. Appreciate an answer.

In below code, the comment says we never have more than 4 nested contexts.

What happen if debug and mce exceptions nest with the four, or we ensure
it never happen?

 * Per-CPU queue node structures; we can never have more than 4 nested
 * contexts: task, softirq, hardirq, nmi.
 * Exactly fits one 64-byte cacheline on a 64-bit architecture.
 * PV doubles the storage and uses the second cacheline for PV state.
static DEFINE_PER_CPU_ALIGNED(struct qnode, qnodes[MAX_NODES]);


 \ /
  Last update: 2019-01-10 09:03    [W:0.118 / U:0.856 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site