diff options
author | Xiu Jianfeng <xiujianfeng@huawei.com> | 2024-11-12 02:57:24 +0000 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2024-11-13 10:59:01 +0100 |
commit | 3b49a347d751553b1d1be69c8619ae2e85fdc28d (patch) | |
tree | 822941ff2ca04bb974d89cf8de57cf8a323bf2b2 /Documentation/locking | |
parent | 9a884bdb6e9560c6da44052d5248e89d78c983a6 (diff) | |
download | linux-3b49a347d751553b1d1be69c8619ae2e85fdc28d.tar.gz linux-3b49a347d751553b1d1be69c8619ae2e85fdc28d.tar.bz2 linux-3b49a347d751553b1d1be69c8619ae2e85fdc28d.zip |
locking/Documentation: Fix grammar in percpu-rw-semaphore.rst
s/'is initialized'/'is initialized with'
Signed-off-by: Xiu Jianfeng <xiujianfeng@huawei.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20241112025724.474881-1-xiujianfeng@huaweicloud.com
Diffstat (limited to 'Documentation/locking')
-rw-r--r-- | Documentation/locking/percpu-rw-semaphore.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/locking/percpu-rw-semaphore.rst b/Documentation/locking/percpu-rw-semaphore.rst index 247de6410855..a105bf2dd812 100644 --- a/Documentation/locking/percpu-rw-semaphore.rst +++ b/Documentation/locking/percpu-rw-semaphore.rst @@ -16,8 +16,8 @@ writing is very expensive, it calls synchronize_rcu() that can take hundreds of milliseconds. The lock is declared with "struct percpu_rw_semaphore" type. -The lock is initialized percpu_init_rwsem, it returns 0 on success and --ENOMEM on allocation failure. +The lock is initialized with percpu_init_rwsem, it returns 0 on success +and -ENOMEM on allocation failure. The lock must be freed with percpu_free_rwsem to avoid memory leak. The lock is locked for read with percpu_down_read, percpu_up_read and |