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

Update linux-sync-4.md

From "may be negative after `increment`"
=>"may be negative after `decrement`"
This commit is contained in:
nannxnann 2022-07-24 21:42:11 +08:00 committed by GitHub
parent e9fbdea09a
commit ea81d2b833
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -205,7 +205,7 @@ exit:
return; return;
``` ```
For this moment the implementation of the `__mutex_fastpath_lock` function looks pretty easy. But the value of the `mutex->counter` may be negative after increment. In this case the: For this moment the implementation of the `__mutex_fastpath_lock` function looks pretty easy. But the value of the `mutex->counter` may be negative after decrement. In this case the:
```C ```C
fail_fn(v); fail_fn(v);