Skip to content

Commit 3b49a34

Browse files
Xiu JianfengIngo Molnar
authored andcommitted
locking/Documentation: Fix grammar in percpu-rw-semaphore.rst
s/'is initialized'/'is initialized with' Signed-off-by: Xiu Jianfeng <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 9a884bd commit 3b49a34

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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)