android_kernel_xiaomi_sm8350/drivers/s390/block
Stefan Haberland 6fca97a958 [S390] dasd: fix race condition in resume code
There is a race while re-reading the device characteristics. After
cleaning the memory area a cqr is build which reads the device
characteristics. This may take a rather long time and the device
characteristics structure is zero during this. Now it could be
possible that the block tasklet starts working and a new cqr will be
build. The build_cp command refers to the device characteristics
structure and this may lead into a divide by zero exception.
Fix this by re-reading the device characteristics into a temporary
structur and copy the data to the original structure. Also take the
ccwdev_lock.

Signed-off-by: Stefan Haberland <stefan.haberland@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
2009-10-06 10:35:11 +02:00
..
dasd_3990_erp.c [S390] dasd: fix message naming 2009-09-11 10:29:42 +02:00
dasd_alias.c [S390] dasd: fix message naming 2009-09-11 10:29:42 +02:00
dasd_devmap.c
dasd_diag.c [S390] dasd: fix message naming 2009-09-11 10:29:42 +02:00
dasd_diag.h
dasd_eckd.c [S390] dasd: fix race condition in resume code 2009-10-06 10:35:11 +02:00
dasd_eckd.h
dasd_eer.c [S390] dasd: fix message naming 2009-09-11 10:29:42 +02:00
dasd_erp.c [S390] dasd: fix message naming 2009-09-11 10:29:42 +02:00
dasd_fba.c [S390] dasd: fix message naming 2009-09-11 10:29:42 +02:00
dasd_fba.h
dasd_genhd.c
dasd_int.h const: make block_device_operations const 2009-09-22 07:17:25 -07:00
dasd_ioctl.c [S390] dasd: fix message naming 2009-09-11 10:29:42 +02:00
dasd_proc.c
dasd.c [S390] dasd: fix race condition in resume code 2009-10-06 10:35:11 +02:00
dcssblk.c const: make block_device_operations const 2009-09-22 07:17:25 -07:00
Kconfig
Makefile
xpram.c const: make block_device_operations const 2009-09-22 07:17:25 -07:00