s390/dasd: fix infinite loop during format
authorStefan Haberland <stefan.haberland@de.ibm.com>
Wed, 1 Oct 2014 11:04:54 +0000 (13:04 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 9 Oct 2014 07:13:51 +0000 (09:13 +0200)
commit362ce84f43aac61589a8b60e5bb3fcfae9801b13
treec3417eb18b62b843922c56947842ca3c318d3930
parentcfb0b24143b4f587ff3e3bd829f9f471285d097b
s390/dasd: fix infinite loop during format

Error recovery requests may not be cleaned up correctly so that other
needed erp requests can not be build because of insufficient memory.
This would lead to an infinite loop trying to build erp requests.

Signed-off-by: Stefan Haberland <stefan.haberland@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/block/dasd.c