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-- 1.7 KB
Makefile -rw-r--r-- 388 bytes
acl.c -rw-r--r-- 11.5 KB
acl.h -rw-r--r-- 1.6 KB
balloc.c -rw-r--r-- 44.6 KB
dir.c -rw-r--r-- 17.6 KB
ext2.h -rw-r--r-- 6.4 KB
file.c -rw-r--r-- 2.3 KB
fsync.c -rw-r--r-- 1.3 KB
ialloc.c -rw-r--r-- 18.4 KB
inode.c -rw-r--r-- 42.0 KB
ioctl.c -rw-r--r-- 4.3 KB
namei.c -rw-r--r-- 9.2 KB
super.c -rw-r--r-- 39.4 KB
symlink.c -rw-r--r-- 1.3 KB
xattr.c -rw-r--r-- 28.0 KB
xattr.h -rw-r--r-- 3.3 KB
xattr_security.c -rw-r--r-- 1.7 KB
xattr_trusted.c -rw-r--r-- 1.5 KB
xattr_user.c -rw-r--r-- 1.5 KB
xip.c -rw-r--r-- 2.0 KB
xip.h -rw-r--r-- 759 bytes

back to top