linux/drivers/s390/block
Stefan Weinhuber 48cae885d5 [S390] dasd: fix race in dasd timer handling
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>
2009-02-11 10:37:40 +01:00
..
dasd_3990_erp.c fix similar typos to successfull 2009-01-08 08:31:15 -08:00
dasd_alias.c [S390] dasd: Add support for enhanced VM UID 2008-08-01 16:39:29 +02:00
dasd_devmap.c [S390] dasd: bus_id -> dev_name() conversion. 2009-02-11 10:37:40 +01:00
dasd_diag.c [S390] dasd: add device attribute to disable blocking on lost paths 2009-01-09 12:15:05 +01:00
dasd_diag.h [S390] dasd whitespace and other cosmetics. 2006-06-29 14:58:12 +02:00
dasd_eckd.c [S390] dasd: add device attribute to disable blocking on lost paths 2009-01-09 12:15:05 +01:00
dasd_eckd.h [S390] dasd: fix data size for PSF/PRSSD command 2008-08-21 19:46:41 +02:00
dasd_eer.c trivial: fix then -> than typos in comments and documentation 2009-01-06 11:28:06 +01:00
dasd_erp.c [S390] dasd: add hyper PAV support to DASD device driver, part 1 2008-01-26 14:11:28 +01:00
dasd_fba.c [S390] dasd: add device attribute to disable blocking on lost paths 2009-01-09 12:15:05 +01:00
dasd_fba.h [S390] dasd whitespace and other cosmetics. 2006-06-29 14:58:12 +02:00
dasd_genhd.c [PATCH] sanitize blkdev_get() and friends 2008-10-21 07:49:06 -04:00
dasd_int.h fix similar typos to successfull 2009-01-08 08:31:15 -08:00
dasd_ioctl.c [PATCH] switch dasd 2008-10-21 07:48:40 -04:00
dasd_proc.c [S390] dasd: improve dasd statistics proc interface 2008-12-25 13:39:01 +01:00
dasd.c [S390] dasd: fix race in dasd timer handling 2009-02-11 10:37:40 +01:00
dcssblk.c s390: remove s390_root_dev_*() 2009-01-06 10:44:34 -08:00
Kconfig [S390] dasd: fix double elevator_exit call when deadline iosched fails to load 2008-04-17 07:46:55 +02:00
Makefile [S390] dasd: add hyper PAV support to DASD device driver, part 1 2008-01-26 14:11:28 +01:00
xpram.c [S390] convert xpram printks to pr_xxx macros. 2008-12-25 13:39:18 +01:00