forked from Minki/linux
dasd: fix list_del corruption during format
If I/O errors occur during format a kernel panic with a list_del corruption may occur. Stop error recovery procedure after an erp action was taken. 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
931a3dce81
commit
8fa56aed12
@ -2307,9 +2307,13 @@ retry:
|
|||||||
|
|
||||||
rc = 0;
|
rc = 0;
|
||||||
list_for_each_entry_safe(cqr, n, ccw_queue, blocklist) {
|
list_for_each_entry_safe(cqr, n, ccw_queue, blocklist) {
|
||||||
if (__dasd_sleep_on_erp(cqr))
|
if (__dasd_sleep_on_erp(cqr)) {
|
||||||
|
if (!cqr->status == DASD_CQR_TERMINATED &&
|
||||||
|
!cqr->status == DASD_CQR_NEED_ERP)
|
||||||
|
break;
|
||||||
rc = 1;
|
rc = 1;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (rc)
|
if (rc)
|
||||||
goto retry;
|
goto retry;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user