Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 119735
b: refs/heads/master
c: f2f1fa7
h: refs/heads/master
i:
  119733: 3ec5a44
  119731: 50155e6
  119727: f8796a1
v: v3
  • Loading branch information
Linus Torvalds committed Dec 5, 2008
1 parent adfe2b5 commit 720bcfe
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 24920a79a27dd28e67088bbfcf36746d15587f4d
refs/heads/master: f2f1fa78a155524b849edf359e42a3001ea652c0
2 changes: 2 additions & 0 deletions trunk/block/bsg.c
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,8 @@ static int blk_fill_sgv4_hdr_rq(struct request_queue *q, struct request *rq,
rq->timeout = q->sg_timeout;
if (!rq->timeout)
rq->timeout = BLK_DEFAULT_SG_TIMEOUT;
if (rq->timeout < BLK_MIN_SG_TIMEOUT)
rq->timeout = BLK_MIN_SG_TIMEOUT;

return 0;
}
Expand Down
2 changes: 2 additions & 0 deletions trunk/block/scsi_ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,8 @@ static int blk_fill_sghdr_rq(struct request_queue *q, struct request *rq,
rq->timeout = q->sg_timeout;
if (!rq->timeout)
rq->timeout = BLK_DEFAULT_SG_TIMEOUT;
if (rq->timeout < BLK_MIN_SG_TIMEOUT)
rq->timeout = BLK_MIN_SG_TIMEOUT;

return 0;
}
Expand Down
1 change: 1 addition & 0 deletions trunk/include/linux/blkdev.h
Original file line number Diff line number Diff line change
Expand Up @@ -662,6 +662,7 @@ extern unsigned long blk_max_low_pfn, blk_max_pfn;
* default timeout for SG_IO if none specified
*/
#define BLK_DEFAULT_SG_TIMEOUT (60 * HZ)
#define BLK_MIN_SG_TIMEOUT (7 * HZ)

#ifdef CONFIG_BOUNCE
extern int init_emergency_isa_pool(void);
Expand Down

0 comments on commit 720bcfe

Please sign in to comment.