title: How can I check that spin_lock is working correctly?
body: <p>I've implemented a basic Linux kernel module with /proc.</p>
  <p>It can add elements to the linked list with <code>echo add number &gt; /proc/list</code> and remove elements from the list with <code>echo remove number &gt; /proc/list</code>. I've added <code>spin_lock</code> and <code>spin_unlock</code> around all critical sections (adding and removing elements elements from the list).</p>
  <p>How can I check that the spinlocks are working correctly? I've tried making 2 scripts, one for adding elements and the other one for removing, and then executing them simultaneously with <code>./script1.sh &amp; ./script2.sh</code>. But the result is the same with and without spinlocks.</p>