Skip to content

Commit fbd7003

Browse files
Stefan WeinhuberMartin Schwidefsky
authored andcommitted
s390/dasd: fix statistics for recovered requests
When a recovery cqr is cleaned up, copy the start time, stop time, and start device to the original cqr. These times are needed later when the original request is finalized and counted in the DASD statistics. Signed-off-by: Stefan Weinhuber <wein@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
1 parent 0628a5f commit fbd7003

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎drivers/s390/block/dasd_erp.c‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,15 @@ dasd_default_erp_action(struct dasd_ccw_req *cqr)
124124
struct dasd_ccw_req *dasd_default_erp_postaction(struct dasd_ccw_req *cqr)
125125
{
126126
int success;
127+
unsigned long long startclk, stopclk;
128+
struct dasd_device *startdev;
127129

128130
BUG_ON(cqr->refers == NULL || cqr->function == NULL);
129131

130132
success = cqr->status == DASD_CQR_DONE;
133+
startclk = cqr->startclk;
134+
stopclk = cqr->stopclk;
135+
startdev = cqr->startdev;
131136

132137
/* free all ERPs - but NOT the original cqr */
133138
while (cqr->refers != NULL) {
@@ -142,6 +147,9 @@ struct dasd_ccw_req *dasd_default_erp_postaction(struct dasd_ccw_req *cqr)
142147
}
143148

144149
/* set corresponding status to original cqr */
150+
cqr->startclk = startclk;
151+
cqr->stopclk = stopclk;
152+
cqr->startdev = startdev;
145153
if (success)
146154
cqr->status = DASD_CQR_DONE;
147155
else {

0 commit comments

Comments
 (0)