[S390] dasd: call cleanup_cqr with request_queue_lock
__dasd_cleanup_cqr should be called with request_queue_lock held and __dasd_block_process_erp with queue_lock 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
50afd20f8c
commit
0cd4bd4754
1 changed files with 4 additions and 0 deletions
|
@ -1898,15 +1898,19 @@ restart_cb:
|
||||||
wait_event(dasd_flush_wq, (cqr->status < DASD_CQR_QUEUED));
|
wait_event(dasd_flush_wq, (cqr->status < DASD_CQR_QUEUED));
|
||||||
/* Process finished ERP request. */
|
/* Process finished ERP request. */
|
||||||
if (cqr->refers) {
|
if (cqr->refers) {
|
||||||
|
spin_lock_bh(&block->queue_lock);
|
||||||
__dasd_block_process_erp(block, cqr);
|
__dasd_block_process_erp(block, cqr);
|
||||||
|
spin_unlock_bh(&block->queue_lock);
|
||||||
/* restart list_for_xx loop since dasd_process_erp
|
/* restart list_for_xx loop since dasd_process_erp
|
||||||
* might remove multiple elements */
|
* might remove multiple elements */
|
||||||
goto restart_cb;
|
goto restart_cb;
|
||||||
}
|
}
|
||||||
/* call the callback function */
|
/* call the callback function */
|
||||||
|
spin_lock_irq(&block->request_queue_lock);
|
||||||
cqr->endclk = get_clock();
|
cqr->endclk = get_clock();
|
||||||
list_del_init(&cqr->blocklist);
|
list_del_init(&cqr->blocklist);
|
||||||
__dasd_cleanup_cqr(cqr);
|
__dasd_cleanup_cqr(cqr);
|
||||||
|
spin_unlock_irq(&block->request_queue_lock);
|
||||||
}
|
}
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue