mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-27 03:47:43 +00:00
s390/dasd: fix list corruption for sleep_on requests
Fix race for sleep_on requests leading to list corruption. The SLEEP_ON_END_TAG is set during CQR clean up. Remove it from interrupt handler to avoid the CQR from being cleared when it is still in the device_queue. Signed-off-by: Stefan Haberland <stefan.haberland@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
This commit is contained in:
parent
2c17124bf3
commit
932f0549f8
@ -1697,11 +1697,8 @@ void dasd_int_handler(struct ccw_device *cdev, unsigned long intparm,
|
|||||||
if (cqr->status == DASD_CQR_CLEAR_PENDING &&
|
if (cqr->status == DASD_CQR_CLEAR_PENDING &&
|
||||||
scsw_fctl(&irb->scsw) & SCSW_FCTL_CLEAR_FUNC) {
|
scsw_fctl(&irb->scsw) & SCSW_FCTL_CLEAR_FUNC) {
|
||||||
cqr->status = DASD_CQR_CLEARED;
|
cqr->status = DASD_CQR_CLEARED;
|
||||||
if (cqr->callback_data == DASD_SLEEPON_START_TAG)
|
|
||||||
cqr->callback_data = DASD_SLEEPON_END_TAG;
|
|
||||||
dasd_device_clear_timer(device);
|
dasd_device_clear_timer(device);
|
||||||
wake_up(&dasd_flush_wq);
|
wake_up(&dasd_flush_wq);
|
||||||
wake_up(&generic_waitq);
|
|
||||||
dasd_schedule_device_bh(device);
|
dasd_schedule_device_bh(device);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user