]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - Documentation/DocBook/kernel-locking.tmpl
Merge branch 'rcu/next' of git://git.kernel.org/pub/scm/linux/kernel/git/paulmck...
[mv-sheeva.git] / Documentation / DocBook / kernel-locking.tmpl
index ed64d220baf2090ef3082dfa9123bb67c41d8964..d7884b13fb1190c4c8f670b71319a1e4f0c861bf 100644 (file)
@@ -1916,9 +1916,12 @@ machines due to caching.
       <function>mutex_lock()</function>
       </para>
       <para>
-       There is a <function>mutex_trylock()</function> which can be
-       used inside interrupt context, as it will not sleep.
+       There is a <function>mutex_trylock()</function> which does not
+       sleep.  Still, it must not be used inside interrupt context since
+       its implementation is not safe for that.
        <function>mutex_unlock()</function> will also never sleep.
+       It cannot be used in interrupt context either since a mutex
+       must be released by the same task that acquired it.
       </para>
      </listitem>
     </itemizedlist>