diff options
Diffstat (limited to 'block/scsi_ioctl.c')
-rw-r--r-- | block/scsi_ioctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/scsi_ioctl.c b/block/scsi_ioctl.c index 5493c2fbbab1..b3e210723a71 100644 --- a/block/scsi_ioctl.c +++ b/block/scsi_ioctl.c | |||
@@ -277,7 +277,7 @@ static int sg_io(struct file *file, request_queue_t *q, | |||
277 | if (rq->bio) | 277 | if (rq->bio) |
278 | blk_queue_bounce(q, &rq->bio); | 278 | blk_queue_bounce(q, &rq->bio); |
279 | 279 | ||
280 | rq->timeout = (hdr->timeout * HZ) / 1000; | 280 | rq->timeout = jiffies_to_msecs(hdr->timeout); |
281 | if (!rq->timeout) | 281 | if (!rq->timeout) |
282 | rq->timeout = q->sg_timeout; | 282 | rq->timeout = q->sg_timeout; |
283 | if (!rq->timeout) | 283 | if (!rq->timeout) |