Minor grammar nits.

This commit is contained in:
Ceri Davies 2005-08-16 09:56:42 +00:00
parent 9c99bba727
commit 328c4f3b15
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=25376

View file

@ -4008,10 +4008,10 @@ kern.timecounter.hardware: TSC -&gt; i8254</screen>
<answer>
<para>This means that a function that may sleep was called while
holding a mutex (or other unsleepable) lock held.</para>
a mutex (or other unsleepable) lock was held.</para>
<para>The reason this is an error is because mutexes are not
intended to be held for long periods of time as they are
intended to be held for long periods of time; they are
supposed to only be held to maintain short periods of
synchronization. This programming contract allows device
drivers to use mutexes to synchronize with the rest of the kernel
@ -4019,7 +4019,7 @@ kern.timecounter.hardware: TSC -&gt; i8254</screen>
Hence it is imperative that no subsystem in the kernel
block for an extended period while holding a mutex.</para>
<para>To catch such errors assertions may be added to the kernel
<para>To catch such errors, assertions may be added to the kernel
that interact with the witness subsystem to emit a warning
or fatal error (depending on the system configuration) when
a potentially blocking call is made while holding a mutex.</para>