Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 45183
b: refs/heads/master
c: 2e11c20
h: refs/heads/master
i:
  45181: a80c054
  45179: 88ecfea
  45175: 27e4124
  45167: 23f580b
  45151: ad90f77
  45119: 4568485
  45055: dc1301f
v: v3
  • Loading branch information
Jens Axboe authored and Linus Torvalds committed Jan 4, 2007
1 parent 65a16a0 commit d240423
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 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: 7523c4dd9923cab748dad9b79d0165e118e3d03b
refs/heads/master: 2e11c207b029cfaf57159cabac4b002204445258
8 changes: 7 additions & 1 deletion trunk/drivers/cdrom/cdrom.c
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,12 @@ static const char *mrw_address_space[] = { "DMA", "GAA" };
/* used in the audio ioctls */
#define CHECKAUDIO if ((ret=check_for_audio_disc(cdi, cdo))) return ret

/*
* Another popular OS uses 7 seconds as the hard timeout for default
* commands, so it is a good choice for us as well.
*/
#define CDROM_DEF_TIMEOUT (7 * HZ)

/* Not-exported routines. */
static int open_for_data(struct cdrom_device_info * cdi);
static int check_for_audio_disc(struct cdrom_device_info * cdi,
Expand Down Expand Up @@ -1528,7 +1534,7 @@ void init_cdrom_command(struct packet_command *cgc, void *buf, int len,
cgc->buffer = (char *) buf;
cgc->buflen = len;
cgc->data_direction = type;
cgc->timeout = 5*HZ;
cgc->timeout = CDROM_DEF_TIMEOUT;
}

/* DVD handling */
Expand Down

0 comments on commit d240423

Please sign in to comment.