lkml.org 
[lkml]   [2009]   [Jul]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[Patch RFC 08/37] hamradio: 6pack: semaphore cleanup
The usage of this "mutex" is non obvious and probably a completion in
some places. Make it a semaphore.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: David Miller <davem@davemloft.net>
---
drivers/net/hamradio/6pack.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Index: linux-2.6-tip/drivers/net/hamradio/6pack.c
===================================================================
--- linux-2.6-tip.orig/drivers/net/hamradio/6pack.c
+++ linux-2.6-tip/drivers/net/hamradio/6pack.c
@@ -606,7 +606,7 @@ static int sixpack_open(struct tty_struc

spin_lock_init(&sp->lock);
atomic_set(&sp->refcnt, 1);
- init_MUTEX_LOCKED(&sp->dead_sem);
+ semaphore_init_locked(&sp->dead_sem);

/* !!! length of the buffers. MTU is IP MTU, not PACLEN! */




\
 
 \ /
  Last update: 2009-07-26 10:25    [W:0.320 / U:0.776 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site