1
0
mirror of https://github.com/0xAX/linux-insides.git synced 2025-01-03 12:20:56 +00:00

Fix some missing code block end markers

Some of the code blocks in `SyncPrim/sync-4.md` were missing their end markers,
causing normal text to be added to the code block. Fix that.
This commit is contained in:
Roy Wellington Ⅳ 2016-05-08 14:07:05 -07:00
parent 371bf87a40
commit 4773e2721f
2 changed files with 4 additions and 1 deletions

View File

@ -309,6 +309,7 @@ In all of these cases, the `__mutex_lock_common` function will acct like a `sema
if (!mutex_is_locked(lock) &&
(atomic_xchg_acquire(&lock->count, 0) == 1))
goto skip_wait;
```
In a failure case the process which wants to acquire a lock will be added to the waiters list
@ -354,6 +355,7 @@ void __sched mutex_unlock(struct mutex *lock)
{
__mutex_fastpath_unlock(&lock->count, __mutex_unlock_slowpath);
}
```
Implementation of the `__mutex_fastpath_unlock` function is very similar to the implementation of the `__mutex_fastpath_lock` function:

View File

@ -86,3 +86,4 @@ Thank you to all contributors:
* [Alfred Agrell](https://github.com/Alcaro)
* [Jakub Wilk](https://github.com/jwilk)
* [Justus Adam](https://github.com/JustusAdam)
* [Roy Wellington Ⅳ](https://github.com/thanatos)