Revision 48cae885d5a896030588978f503c73c5ed5e62b1 authored by Stefan Weinhuber on 11 February 2009, 09:37:31 UTC, committed by Martin Schwidefsky on 11 February 2009, 09:37:40 UTC
In dasd_device_set_timer and dasd_block_set_timer we interpret the
return value of mod_timer in a wrong way. If the timer expires in
the small window between our check of timer_pending and the call to
mod_timer, then the timer will be set, mod_timer returns zero and
we will call add_timer for a timer that is already pending.
As del_timer and mod_timer do all the necessary checking themselves,
we can simplify our code and remove the race a the same time.

Signed-off-by: Stefan Weinhuber <wein@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
1 parent ca0b4b7
History
File Mode Size
Kconfig -rw-r--r-- 5.2 KB
Makefile -rw-r--r-- 699 bytes
bcm203x.c -rw-r--r-- 6.9 KB
bfusb.c -rw-r--r-- 16.7 KB
bluecard_cs.c -rw-r--r-- 21.3 KB
bpa10x.c -rw-r--r-- 10.7 KB
bt3c_cs.c -rw-r--r-- 16.4 KB
btsdio.c -rw-r--r-- 8.2 KB
btuart_cs.c -rw-r--r-- 15.5 KB
btusb.c -rw-r--r-- 24.0 KB
dtl1_cs.c -rw-r--r-- 14.0 KB
hci_bcsp.c -rw-r--r-- 18.4 KB
hci_h4.c -rw-r--r-- 5.9 KB
hci_ldisc.c -rw-r--r-- 11.9 KB
hci_ll.c -rw-r--r-- 12.0 KB
hci_uart.h -rw-r--r-- 2.3 KB
hci_vhci.c -rw-r--r-- 7.5 KB

back to top