Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 213321
b: refs/heads/master
c: e3b3e62
h: refs/heads/master
i:
  213319: e702436
v: v3
  • Loading branch information
Mike Christie authored and James Bottomley committed Sep 5, 2010
1 parent 73a8e72 commit 3b3adef
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 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: 1c1acab0367d88ad5da2b9db2efdf2699113ec88
refs/heads/master: e3b3e6246726cd05950677ed843010b8e8c5884c
4 changes: 2 additions & 2 deletions trunk/drivers/scsi/sd.c
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ static int scsi_setup_discard_cmnd(struct scsi_device *sdp, struct request *rq)

static int scsi_setup_flush_cmnd(struct scsi_device *sdp, struct request *rq)
{
rq->timeout = SD_TIMEOUT;
rq->timeout = SD_FLUSH_TIMEOUT;
rq->retries = SD_MAX_RETRIES;
rq->cmd[0] = SYNCHRONIZE_CACHE;
rq->cmd_len = 10;
Expand Down Expand Up @@ -1072,7 +1072,7 @@ static int sd_sync_cache(struct scsi_disk *sdkp)
* flush everything.
*/
res = scsi_execute_req(sdp, cmd, DMA_NONE, NULL, 0, &sshdr,
SD_TIMEOUT, SD_MAX_RETRIES, NULL);
SD_FLUSH_TIMEOUT, SD_MAX_RETRIES, NULL);
if (res == 0)
break;
}
Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/scsi/sd.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
*/
#define SD_TIMEOUT (30 * HZ)
#define SD_MOD_TIMEOUT (75 * HZ)
#define SD_FLUSH_TIMEOUT (60 * HZ)

/*
* Number of allowed retries
Expand Down

0 comments on commit 3b3adef

Please sign in to comment.