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
File | Mode | Size |
---|---|---|
i1480 | ||
wlp | ||
Kconfig | -rw-r--r-- | 3.1 KB |
Makefile | -rw-r--r-- | 479 bytes |
address.c | -rw-r--r-- | 10.2 KB |
allocator.c | -rw-r--r-- | 9.9 KB |
beacon.c | -rw-r--r-- | 16.2 KB |
driver.c | -rw-r--r-- | 3.7 KB |
drp-avail.c | -rw-r--r-- | 8.6 KB |
drp-ie.c | -rw-r--r-- | 9.5 KB |
drp.c | -rw-r--r-- | 24.1 KB |
est.c | -rw-r--r-- | 13.4 KB |
hwa-rc.c | -rw-r--r-- | 27.7 KB |
ie-rcv.c | -rw-r--r-- | 1.6 KB |
ie.c | -rw-r--r-- | 9.6 KB |
lc-dev.c | -rw-r--r-- | 12.7 KB |
lc-rc.c | -rw-r--r-- | 10.8 KB |
neh.c | -rw-r--r-- | 17.5 KB |
pal.c | -rw-r--r-- | 2.3 KB |
radio.c | -rw-r--r-- | 4.5 KB |
reset.c | -rw-r--r-- | 10.9 KB |
rsv.c | -rw-r--r-- | 26.9 KB |
scan.c | -rw-r--r-- | 4.0 KB |
umc-bus.c | -rw-r--r-- | 5.4 KB |
umc-dev.c | -rw-r--r-- | 2.3 KB |
umc-drv.c | -rw-r--r-- | 819 bytes |
uwb-debug.c | -rw-r--r-- | 9.5 KB |
uwb-internal.h | -rw-r--r-- | 11.1 KB |
uwbd.c | -rw-r--r-- | 10.2 KB |
whc-rc.c | -rw-r--r-- | 13.2 KB |
whci.c | -rw-r--r-- | 6.4 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...