[PATCH] mutex: Remove the comment about spin_is_locked() from mutex_is_locked()

From: Andrea Parri
Date: Mon Mar 26 2018 - 09:03:58 EST


Still true/valid, but not particularly useful [IMO].

Suggested-by: Will Deacon <will.deacon@xxxxxxx>
Signed-off-by: Andrea Parri <andrea.parri@xxxxxxxxxxxxxxxxxxxx>
---
include/linux/mutex.h | 3 ---
1 file changed, 3 deletions(-)

diff --git a/include/linux/mutex.h b/include/linux/mutex.h
index cb3bbed4e6339..9921822c51585 100644
--- a/include/linux/mutex.h
+++ b/include/linux/mutex.h
@@ -147,9 +147,6 @@ extern void __mutex_init(struct mutex *lock, const char *name,
*/
static inline bool mutex_is_locked(struct mutex *lock)
{
- /*
- * XXX think about spin_is_locked
- */
return __mutex_owner(lock) != NULL;
}

--
2.7.4


>
> Will