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 |
---|---|---|
locking | ||
Kconfig | -rw-r--r-- | 1.3 KB |
Makefile | -rw-r--r-- | 356 bytes |
acl.c | -rw-r--r-- | 6.0 KB |
acl.h | -rw-r--r-- | 1.3 KB |
bmap.c | -rw-r--r-- | 31.0 KB |
bmap.h | -rw-r--r-- | 1.7 KB |
dir.c | -rw-r--r-- | 47.3 KB |
dir.h | -rw-r--r-- | 2.1 KB |
eaops.c | -rw-r--r-- | 3.8 KB |
eaops.h | -rw-r--r-- | 921 bytes |
eattr.c | -rw-r--r-- | 31.4 KB |
eattr.h | -rw-r--r-- | 3.1 KB |
gfs2.h | -rw-r--r-- | 524 bytes |
glock.c | -rw-r--r-- | 46.6 KB |
glock.h | -rw-r--r-- | 4.0 KB |
glops.c | -rw-r--r-- | 10.2 KB |
glops.h | -rw-r--r-- | 981 bytes |
incore.h | -rw-r--r-- | 14.7 KB |
inode.c | -rw-r--r-- | 30.6 KB |
inode.h | -rw-r--r-- | 3.7 KB |
locking.c | -rw-r--r-- | 5.4 KB |
log.c | -rw-r--r-- | 22.8 KB |
log.h | -rw-r--r-- | 2.0 KB |
lops.c | -rw-r--r-- | 18.6 KB |
lops.h | -rw-r--r-- | 2.9 KB |
main.c | -rw-r--r-- | 3.6 KB |
meta_io.c | -rw-r--r-- | 10.0 KB |
meta_io.h | -rw-r--r-- | 2.4 KB |
mount.c | -rw-r--r-- | 5.2 KB |
mount.h | -rw-r--r-- | 508 bytes |
ops_address.c | -rw-r--r-- | 28.7 KB |
ops_address.h | -rw-r--r-- | 767 bytes |
ops_dentry.c | -rw-r--r-- | 2.4 KB |
ops_export.c | -rw-r--r-- | 6.3 KB |
ops_file.c | -rw-r--r-- | 19.0 KB |
ops_fstype.c | -rw-r--r-- | 31.6 KB |
ops_inode.c | -rw-r--r-- | 28.9 KB |
ops_super.c | -rw-r--r-- | 15.5 KB |
quota.c | -rw-r--r-- | 31.0 KB |
quota.h | -rw-r--r-- | 1.6 KB |
recovery.c | -rw-r--r-- | 14.4 KB |
recovery.h | -rw-r--r-- | 1.1 KB |
rgrp.c | -rw-r--r-- | 40.3 KB |
rgrp.h | -rw-r--r-- | 2.2 KB |
super.c | -rw-r--r-- | 9.9 KB |
super.h | -rw-r--r-- | 1.5 KB |
sys.c | -rw-r--r-- | 12.8 KB |
sys.h | -rw-r--r-- | 600 bytes |
trans.c | -rw-r--r-- | 4.2 KB |
trans.h | -rw-r--r-- | 1.1 KB |
util.c | -rw-r--r-- | 7.3 KB |
util.h | -rw-r--r-- | 4.9 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...