| From 4c50170dd6c16db37aa38d48cd4d929c4f38e2af Mon Sep 17 00:00:00 2001 |
| From: Thomas Gleixner <tglx@linutronix.de> |
| Date: Sun, 26 Jul 2009 00:10:40 +0200 |
| Subject: [PATCH] infiniband: Make user_mad semaphore a real one |
| |
| commit 37be6ed9bf5d50cf2bfa07a4ff8b505e428e6a4c in tip. |
| |
| The usage of this "mutex" is non obvious. Make it a semaphore. |
| |
| Signed-off-by: Thomas Gleixner <tglx@linutronix.de> |
| Cc: Roland Dreier <rolandd@cisco.com> |
| |
| diff --git a/drivers/infiniband/core/user_mad.c b/drivers/infiniband/core/user_mad.c |
| index 7de0296..810a52c 100644 |
| --- a/drivers/infiniband/core/user_mad.c |
| +++ b/drivers/infiniband/core/user_mad.c |
| @@ -1004,7 +1004,7 @@ static int ib_umad_init_port(struct ib_device *device, int port_num, |
| |
| port->ib_dev = device; |
| port->port_num = port_num; |
| - init_MUTEX(&port->sm_sem); |
| + semaphore_init(&port->sm_sem); |
| mutex_init(&port->file_mutex); |
| INIT_LIST_HEAD(&port->file_list); |
| |
| -- |
| 1.7.1.1 |
| |