mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH -next] docs/locking: Fix grammar in percpu-rw-semaphore.rst
@ 2024-11-12  2:57 Xiu Jianfeng
  2024-11-13 10:09 ` [tip: locking/core] locking/Documentation: " tip-bot2 for Xiu Jianfeng
  0 siblings, 1 reply; 2+ messages in thread
From: Xiu Jianfeng @ 2024-11-12  2:57 UTC (permalink / raw)
  To: peterz, mingo, will, longman, boqun.feng, corbet; +Cc: linux-kernel, linux-doc

From: Xiu Jianfeng <xiujianfeng@huawei.com>

s/'is initialized'/'is initialized with'

Signed-off-by: Xiu Jianfeng <xiujianfeng@huawei.com>
---
 Documentation/locking/percpu-rw-semaphore.rst | 4 ++--
 1 file 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
-- 
2.34.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-11-13 10:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-11-12  2:57 [PATCH -next] docs/locking: Fix grammar in percpu-rw-semaphore.rst Xiu Jianfeng
2024-11-13 10:09 ` [tip: locking/core] locking/Documentation: " tip-bot2 for Xiu Jianfeng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®