]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
cam iosched: Schedule cam_iosched_ticker() quanta times per second
authorWarner Losh <imp@FreeBSD.org>
Wed, 20 Sep 2017 21:25:56 +0000 (21:25 +0000)
committerWarner Losh <imp@FreeBSD.org>
Wed, 20 Sep 2017 21:25:56 +0000 (21:25 +0000)
commit3028dd8dd5bd9ab33aaaab37bf7e6383ec24513d
tree809dae55152512581103203a33288065f324e552
parent2d22619adce2317009ee396501431612a3998734
cam iosched: Schedule cam_iosched_ticker() quanta times per second

Previously callout_reset() was called with a "ticks" value that was
off by one.  As a result cam_iosched_ticker() was called a bit too
frequently: On systems with hz=1000 a quanta value of 200 resulted in
~250 calls and a value of 100 in ~111 calls.

For the "queue_depth" and "bandwidth" limiters the difference doesn't
matter but the "iops" limiter depends on the scheduling to enforce the
correct maximum.

PR: 221956
Obtained from: ElectroBSD
Submitted by: Fabian Keil
Differential Revision: https://reviews.freebsd.org/D12350
sys/cam/cam_iosched.c