Skip to content

Commit 85e04e3

Browse files
hreineckeJames Bottomley
authored andcommitted
[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>
1 parent 667c667 commit 85e04e3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎block/scsi_ioctl.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ static int sg_io(struct file *file, request_queue_t *q,
304304
if (rq->bio)
305305
blk_queue_bounce(q, &rq->bio);
306306

307-
rq->timeout = (hdr->timeout * HZ) / 1000;
307+
rq->timeout = jiffies_to_msecs(hdr->timeout);
308308
if (!rq->timeout)
309309
rq->timeout = q->sg_timeout;
310310
if (!rq->timeout)

0 commit comments

Comments
 (0)