Skip to content

Commit 3b49a34

Browse files
Xiu Jianfengingomolnar
authored andcommitted
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
1 parent 9a884bd commit 3b49a34

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Documentation/locking/percpu-rw-semaphore.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ writing is very expensive, it calls synchronize_rcu() that can take
1616
hundreds of milliseconds.
1717

1818
The lock is declared with "struct percpu_rw_semaphore" type.
19-
The lock is initialized percpu_init_rwsem, it returns 0 on success and
20-
-ENOMEM on allocation failure.
19+
The lock is initialized with percpu_init_rwsem, it returns 0 on success
20+
and -ENOMEM on allocation failure.
2121
The lock must be freed with percpu_free_rwsem to avoid memory leak.
2222

2323
The lock is locked for read with percpu_down_read, percpu_up_read and

0 commit comments

Comments
 (0)