summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorJens Axboe <axboe@suse.de>2003-05-29 20:55:12 -0700
committerJens Axboe <axboe@suse.de>2003-05-29 20:55:12 -0700
commitff208476f0458685e3dc7b4176bdd7e9a1bef1a4 (patch)
treed60d490f1bf46524f50c20171903a117df315bc2 /include/linux
parent4303cc87fde3ec2a35d9c1eef6b429eb0b38c8aa (diff)
[PATCH] scsi_ioctl HZ fixes
According to http://www.torque.net/sg/p/sg_v3_ho.html, SG HOWTO, SG_[GET|SET]_TIMEOUTs are measured in "jiffies," while timeout field of SG_IO structure - in milliseconds. Inconsistent? Yes. Yet it's no excuse to disregard the specification. "Jiffies" are USER_HZ, 10ms on IA-32 platforms and has to be scaled to kernel "jiffies," as suggested below. As for "(jiffies - start_time) * (1000 / HZ)" vs. "((jiffies - start_time) * 1000) / HZ." Just think that HZ is 1024 on some platforms...
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions