Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 20214
b: refs/heads/master
c: 25fab9e
h: refs/heads/master
v: v3
  • Loading branch information
Peter Oberparleiter authored and Linus Torvalds committed Feb 12, 2006
1 parent 2e79b0b commit 396f67f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 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: e6f3601a7275216c48c2635f46b388d970901bb9
refs/heads/master: 25fab9ebac445d57b656f5faabac5a195bed2f82
13 changes: 5 additions & 8 deletions trunk/drivers/s390/char/sclp.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,10 @@ static volatile enum sclp_mask_state_t {
/* Maximum retry counts */
#define SCLP_INIT_RETRY 3
#define SCLP_MASK_RETRY 3
#define SCLP_REQUEST_RETRY 3

/* Timeout intervals in seconds.*/
#define SCLP_BUSY_INTERVAL 2
#define SCLP_RETRY_INTERVAL 5
#define SCLP_BUSY_INTERVAL 10
#define SCLP_RETRY_INTERVAL 15

static void sclp_process_queue(void);
static int sclp_init_mask(int calculate);
Expand Down Expand Up @@ -153,11 +152,9 @@ __sclp_start_request(struct sclp_req *req)
if (sclp_running_state != sclp_running_state_idle)
return 0;
del_timer(&sclp_request_timer);
if (req->start_count <= SCLP_REQUEST_RETRY) {
rc = service_call(req->command, req->sccb);
req->start_count++;
} else
rc = -EIO;
rc = service_call(req->command, req->sccb);
req->start_count++;

if (rc == 0) {
/* Sucessfully started request */
req->status = SCLP_REQ_RUNNING;
Expand Down

0 comments on commit 396f67f

Please sign in to comment.