diff options
author | Hannes Reinecke <hare@suse.de> | 2006-11-09 05:55:41 -0500 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2006-11-15 18:57:33 -0500 |
commit | 85e04e371b5a321b5df2bc3f8e0099a64fb087d7 (patch) | |
tree | 81a13557622a876f68953cd1db54520afc42ae15 /block | |
parent | 667c667f86c87cd4f72296d650e5e65f2d89cb31 (diff) |
[SCSI] block: convert jiffies to msecs in scsi_ioctl()
Use the proper conversion function for convert jiffies to msecs in
sg_io().
Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'block')
-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 2dc326421a24..ac63964b7242 100644 --- a/block/scsi_ioctl.c +++ b/block/scsi_ioctl.c | |||
@@ -304,7 +304,7 @@ static int sg_io(struct file *file, request_queue_t *q, | |||
304 | if (rq->bio) | 304 | if (rq->bio) |
305 | blk_queue_bounce(q, &rq->bio); | 305 | blk_queue_bounce(q, &rq->bio); |
306 | 306 | ||
307 | rq->timeout = (hdr->timeout * HZ) / 1000; | 307 | rq->timeout = jiffies_to_msecs(hdr->timeout); |
308 | if (!rq->timeout) | 308 | if (!rq->timeout) |
309 | rq->timeout = q->sg_timeout; | 309 | rq->timeout = q->sg_timeout; |
310 | if (!rq->timeout) | 310 | if (!rq->timeout) |