[S390] dasd: Correct retry counter for terminated I/O.
In case the DASD driver needs to term a running I/O the retry counter is decreased twice. Remove the unnecessary retry counter decrease in das_term_IO. 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
e4dbb0f2b5
commit
09a8e7adcf
drivers/s390/block
|
@ -855,7 +855,6 @@ int dasd_term_IO(struct dasd_ccw_req *cqr)
|
||||||
rc = ccw_device_clear(device->cdev, (long) cqr);
|
rc = ccw_device_clear(device->cdev, (long) cqr);
|
||||||
switch (rc) {
|
switch (rc) {
|
||||||
case 0: /* termination successful */
|
case 0: /* termination successful */
|
||||||
cqr->retries--;
|
|
||||||
cqr->status = DASD_CQR_CLEAR_PENDING;
|
cqr->status = DASD_CQR_CLEAR_PENDING;
|
||||||
cqr->stopclk = get_clock();
|
cqr->stopclk = get_clock();
|
||||||
cqr->starttime = 0;
|
cqr->starttime = 0;
|
||||||
|
|
Loading…
Reference in New Issue