[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1410500066-5909-2-git-send-email-dave@stgolabs.net>
Date: Thu, 11 Sep 2014 22:34:26 -0700
From: Davidlohr Bueso <dave@...olabs.net>
To: peterz@...radead.org, mingo@...nel.org
Cc: linux-kernel@...r.kernel.org, dave@...olabs.net, dbueso@...e.de
Subject: [PATCH 2/2] locking/rwsem-spinlock: Cleanup down_read()
... when returning from a successful lock acquisition. The horror!
Signed-off-by: Davidlohr Bueso <dbueso@...e.de>
---
kernel/locking/rwsem-spinlock.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/kernel/locking/rwsem-spinlock.c b/kernel/locking/rwsem-spinlock.c
index 2c93571..07e456c 100644
--- a/kernel/locking/rwsem-spinlock.c
+++ b/kernel/locking/rwsem-spinlock.c
@@ -130,7 +130,7 @@ void __sched __down_read(struct rw_semaphore *sem)
/* granted */
sem->count++;
raw_spin_unlock_irqrestore(&sem->wait_lock, flags);
- goto out;
+ return;
}
tsk = current;
@@ -155,8 +155,6 @@ void __sched __down_read(struct rw_semaphore *sem)
}
tsk->state = TASK_RUNNING;
- out:
- ;
}
/*
--
1.8.4.5
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists