Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 25486
b: refs/heads/master
c: 25ee4cf
h: refs/heads/master
v: v3
  • Loading branch information
Peter Oberparleiter authored and Linus Torvalds committed Apr 11, 2006
1 parent 878fe26 commit eb20008
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 14 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: dafd87aaef7d95a6ad3ff92e0d512e5b166c0716
refs/heads/master: 25ee4cf831fcc2855927c175d246a25e5ebe5902
29 changes: 16 additions & 13 deletions trunk/drivers/s390/block/dasd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1257,25 +1257,28 @@ __dasd_start_head(struct dasd_device * device)
if (list_empty(&device->ccw_queue))
return;
cqr = list_entry(device->ccw_queue.next, struct dasd_ccw_req, list);
/* check FAILFAST */
if (cqr->status != DASD_CQR_QUEUED)
return;
/* Non-temporary stop condition will trigger fail fast */
if (device->stopped & ~DASD_STOPPED_PENDING &&
test_bit(DASD_CQR_FLAGS_FAILFAST, &cqr->flags) &&
(!dasd_eer_enabled(device))) {
cqr->status = DASD_CQR_FAILED;
dasd_schedule_bh(device);
return;
}
if ((cqr->status == DASD_CQR_QUEUED) &&
(!device->stopped)) {
/* try to start the first I/O that can be started */
rc = device->discipline->start_IO(cqr);
if (rc == 0)
dasd_set_timer(device, cqr->expires);
else if (rc == -EACCES) {
dasd_schedule_bh(device);
} else
/* Hmpf, try again in 1/2 sec */
dasd_set_timer(device, 50);
}
/* Don't try to start requests if device is stopped */
if (device->stopped)
return;

rc = device->discipline->start_IO(cqr);
if (rc == 0)
dasd_set_timer(device, cqr->expires);
else if (rc == -EACCES) {
dasd_schedule_bh(device);
} else
/* Hmpf, try again in 1/2 sec */
dasd_set_timer(device, 50);
}

/*
Expand Down

0 comments on commit eb20008

Please sign in to comment.