From: Xiu Jianfeng Date: Tue, 12 Nov 2024 02:57:24 +0000 (+0000) Subject: locking/Documentation: Fix grammar in percpu-rw-semaphore.rst X-Git-Tag: v6.13-rc1~181^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3b49a347d751553b1d1be69c8619ae2e85fdc28d;p=thirdparty%2Fkernel%2Flinux.git locking/Documentation: Fix grammar in percpu-rw-semaphore.rst s/'is initialized'/'is initialized with' Signed-off-by: Xiu Jianfeng Signed-off-by: Ingo Molnar Link: https://lore.kernel.org/r/20241112025724.474881-1-xiujianfeng@huaweicloud.com --- diff --git a/Documentation/locking/percpu-rw-semaphore.rst b/Documentation/locking/percpu-rw-semaphore.rst index 247de64108557..a105bf2dd8123 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