Skip to contentSkip to conversation

semaphore: fix comment

PATCH Applied Lucia Rosculete 3 participants 3 messages Mar 3, 2012 – Apr 6, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 semaphore: fix comment

Replace "mutex" with "semaphore" in down_trylock comment

---
 kernel/semaphore.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
kernel/semaphore.c +1 -1
index 60636a4..4567fc0 100644
@@ -118,7 +118,7 @@ EXPORT_SYMBOL(down_killable);
  * down_trylock - try to acquire the semaphore, without waiting
  * @sem: the semaphore to be acquired
  *
- * Try to acquire the semaphore atomically.  Returns 0 if the mutex has
+ * Try to acquire the semaphore atomically.  Returns 0 if the semaphore has
  * been acquired successfully or 1 if it it cannot be acquired.
  *
  * NOTE: This return value is inverted from both spin_trylock and
Signature · 1 line
1.7.6.3
#1 lore raw
Quoted 21 lines · Lucia Rosculete

        Replace "mutex" with "semaphore" in down_trylock comment

---
 kernel/semaphore.c |    2 +-

 1 files changed, 1 insertions(+), 1 deletions(-)
kernel/semaphore.c +1 -2
index 60636a4..4567fc0 100644
@@ -118,7 +118,7 @@ EXPORT_SYMBOL(down_killable);
  * down_trylock - try to acquire the semaphore, without waiting
  * @sem: the semaphore to be acquired
  *
- * Try to acquire the semaphore atomically.  Returns 0 if the mutex has
+ * Try to acquire the semaphore atomically.  Returns 0 if the semaphore has
  * been acquired successfully or 1 if it it cannot be acquired.
  *
  * NOTE: This return value is inverted from both spin_trylock and
--
Quoted 1 line

1.7.6.3

Hello Jiri,

Can you have a look?

thanks,
Daniel.

Applied
#2 lore raw
Quoted 25 lines · Daniel Baluta
Quoted 12 lines · Lucia Rosculete

        Replace "mutex" with "semaphore" in down_trylock comment

---
 kernel/semaphore.c |    2 +-

 1 files changed, 1 insertions(+), 1 deletions(-)
kernel/semaphore.c +0 -0
index 60636a4..4567fc0 100644

kernel/semaphore.c EXPORT_SYMBOL(down_killable); · line 124

Quoted 8 lines
kernel/semaphore.c +1 -1
@@ -118,7 +118,7 @@ EXPORT_SYMBOL(down_killable);
  * down_trylock - try to acquire the semaphore, without waiting
  * @sem: the semaphore to be acquired
  *
- * Try to acquire the semaphore atomically.  Returns 0 if the mutex has
+ * Try to acquire the semaphore atomically.  Returns 0 if the semaphore has
  * been acquired successfully or 1 if it it cannot be acquired.
  *
  * NOTE: This return value is inverted from both spin_trylock and

Hello Jiri,

Quoted 1 line

Can you have a look?

Applied, thanks.

Signature · 2 lines
Jiri Kosina
SUSE Labs