2021-03-17 04:22:39

by Bhaskar Chowdhury

[permalink] [raw]
Subject: [PATCH] kernel: locking: Mundane typo fix in the file rwsem.c


s/folowing/following/

Signed-off-by: Bhaskar Chowdhury <[email protected]>
---
kernel/locking/rwsem.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/locking/rwsem.c b/kernel/locking/rwsem.c
index abba5df50006..fe9cc65cd522 100644
--- a/kernel/locking/rwsem.c
+++ b/kernel/locking/rwsem.c
@@ -632,7 +632,7 @@ static inline bool rwsem_can_spin_on_owner(struct rw_semaphore *sem)
}

/*
- * The rwsem_spin_on_owner() function returns the folowing 4 values
+ * The rwsem_spin_on_owner() function returns the following 4 values
* depending on the lock owner state.
* OWNER_NULL : owner is currently NULL
* OWNER_WRITER: when owner changes and is a writer
--
2.30.2


2021-03-17 05:15:15

by Randy Dunlap

[permalink] [raw]
Subject: Re: [PATCH] kernel: locking: Mundane typo fix in the file rwsem.c

On 3/16/21 9:18 PM, Bhaskar Chowdhury wrote:
>
> s/folowing/following/
>
> Signed-off-by: Bhaskar Chowdhury <[email protected]>

Acked-by: Randy Dunlap <[email protected]>

> ---
> kernel/locking/rwsem.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/kernel/locking/rwsem.c b/kernel/locking/rwsem.c
> index abba5df50006..fe9cc65cd522 100644
> --- a/kernel/locking/rwsem.c
> +++ b/kernel/locking/rwsem.c
> @@ -632,7 +632,7 @@ static inline bool rwsem_can_spin_on_owner(struct rw_semaphore *sem)
> }
>
> /*
> - * The rwsem_spin_on_owner() function returns the folowing 4 values
> + * The rwsem_spin_on_owner() function returns the following 4 values
> * depending on the lock owner state.
> * OWNER_NULL : owner is currently NULL
> * OWNER_WRITER: when owner changes and is a writer
> --


--
~Randy

Subject: [tip: locking/core] locking/rwsem: Fix comment typo

The following commit has been merged into the locking/core branch of tip:

Commit-ID: 4faf62b1ef1a9367f7dcf8b7ce509980dfdcee83
Gitweb: https://git.kernel.org/tip/4faf62b1ef1a9367f7dcf8b7ce509980dfdcee83
Author: Bhaskar Chowdhury <[email protected]>
AuthorDate: Wed, 17 Mar 2021 09:48:06 +05:30
Committer: Ingo Molnar <[email protected]>
CommitterDate: Wed, 17 Mar 2021 09:34:39 +01:00

locking/rwsem: Fix comment typo

s/folowing/following/

Signed-off-by: Bhaskar Chowdhury <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Acked-by: Randy Dunlap <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
---
kernel/locking/rwsem.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/locking/rwsem.c b/kernel/locking/rwsem.c
index abba5df..fe9cc65 100644
--- a/kernel/locking/rwsem.c
+++ b/kernel/locking/rwsem.c
@@ -632,7 +632,7 @@ static inline bool rwsem_can_spin_on_owner(struct rw_semaphore *sem)
}

/*
- * The rwsem_spin_on_owner() function returns the folowing 4 values
+ * The rwsem_spin_on_owner() function returns the following 4 values
* depending on the lock owner state.
* OWNER_NULL : owner is currently NULL
* OWNER_WRITER: when owner changes and is a writer

2021-03-17 23:33:24

by Waiman Long

[permalink] [raw]
Subject: Re: [PATCH] kernel: locking: Mundane typo fix in the file rwsem.c

On 3/17/21 12:18 AM, Bhaskar Chowdhury wrote:
> s/folowing/following/
>
> Signed-off-by: Bhaskar Chowdhury <[email protected]>
> ---
> kernel/locking/rwsem.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/kernel/locking/rwsem.c b/kernel/locking/rwsem.c
> index abba5df50006..fe9cc65cd522 100644
> --- a/kernel/locking/rwsem.c
> +++ b/kernel/locking/rwsem.c
> @@ -632,7 +632,7 @@ static inline bool rwsem_can_spin_on_owner(struct rw_semaphore *sem)
> }
>
> /*
> - * The rwsem_spin_on_owner() function returns the folowing 4 values
> + * The rwsem_spin_on_owner() function returns the following 4 values
> * depending on the lock owner state.
> * OWNER_NULL : owner is currently NULL
> * OWNER_WRITER: when owner changes and is a writer
> --
> 2.30.2
>
Acked-by: Waiman Long <[email protected]>