title: Is it safe to use break inside list_for_each_entry?
body: <p>Is it safe to use a break instruction for a <code>while/for</code> loop, which is inside a <code>list_for_each_entry</code> instruction (in the Linux kernel)?</p>
  
  <p>By example:</p>
  
  <pre><code>list_for_each_entry(obj1, vars, list) {
      ...
      while(j &lt; k)
      {
          ...
          if(k &gt;= MAX_ITERATIONS) break; // break the while
          ...
      }
      ...
  }
  </code></pre>
  
  <p>Will the while loop be broken as expected or will the <code>list_for_each_entry</code> be broken?</p>