From: "tip-bot2 for Xiu Jianfeng" <tip-bot2@linutronix.de>
To: linux-tip-commits@vger.kernel.org
Cc: Xiu Jianfeng <xiujianfeng@huawei.com>,
Ingo Molnar <mingo@kernel.org>,
x86@kernel.org, linux-kernel@vger.kernel.org
Subject: [tip: locking/core] locking/Documentation: Fix grammar in percpu-rw-semaphore.rst
Date: Wed, 13 Nov 2024 10:09:00 -0000 [thread overview]
Message-ID: <173149254031.32228.3413941510634534540.tip-bot2@tip-bot2> (raw)
In-Reply-To: <20241112025724.474881-1-xiujianfeng@huaweicloud.com>
The following commit has been merged into the locking/core branch of tip:
Commit-ID: 3b49a347d751553b1d1be69c8619ae2e85fdc28d
Gitweb: https://git.kernel.org/tip/3b49a347d751553b1d1be69c8619ae2e85fdc28d
Author: Xiu Jianfeng <xiujianfeng@huawei.com>
AuthorDate: Tue, 12 Nov 2024 02:57:24
Committer: Ingo Molnar <mingo@kernel.org>
CommitterDate: Wed, 13 Nov 2024 10:59:01 +01:00
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
---
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 247de64..a105bf2 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
prev parent reply other threads:[~2024-11-13 10:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-12 2:57 [PATCH -next] docs/locking: " Xiu Jianfeng
2024-11-13 10:09 ` tip-bot2 for Xiu Jianfeng [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=173149254031.32228.3413941510634534540.tip-bot2@tip-bot2 \
--to=tip-bot2@linutronix.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tip-commits@vger.kernel.org \
--cc=mingo@kernel.org \
--cc=x86@kernel.org \
--cc=xiujianfeng@huawei.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®