diff options
| author | Rasesh Mody <rmody@brocade.com> | 2011-09-16 15:06:46 +0000 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2011-09-17 00:47:57 -0400 |
| commit | 1d51a1325e43e0c05df626735c66d52203d610fd (patch) | |
| tree | 23aa3fdfed58a4f566ce4bbe6c9c78f5183e4b2a /include/linux/timerqueue.h | |
| parent | ae0e148934fe016ce3fc70cacee7431ff053a2ee (diff) | |
| download | cachepc-linux-1d51a1325e43e0c05df626735c66d52203d610fd.tar.gz cachepc-linux-1d51a1325e43e0c05df626735c66d52203d610fd.zip | |
bna: Semaphore Lock Fix
Remove a BUG_ON() as it is not required.
Change the unconditional write to release a semaphore to read sem first
and then write. This will eliminate the possibility of sem getting locked
while trying to release it in case if previous sem_get operation failed.
Signed-off-by: Gurunatha Karaje <gkaraje@brocade.com>
Signed-off-by: Rasesh Mody <rmody@brocade.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions
