]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
locking/Documentation: Fix grammar in percpu-rw-semaphore.rst
authorXiu Jianfeng <xiujianfeng@huawei.com>
Tue, 12 Nov 2024 02:57:24 +0000 (02:57 +0000)
committerIngo Molnar <mingo@kernel.org>
Wed, 13 Nov 2024 09:59:01 +0000 (10:59 +0100)
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
Documentation/locking/percpu-rw-semaphore.rst

index 247de64108557a85a9096ec56de4855cd19bdec7..a105bf2dd812368b044f6ff249e6a765543b0f98 100644 (file)
@@ -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