From 4a397dcf4bd8a145564817fd8f459267d6b0eb8b Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Tue, 8 Aug 2017 09:10:27 +0200 Subject: [PATCH 216/325] cam iosched: Only log the 'Steering write' message if writes are actually limited Obtained from: ElectroBSD --- sys/cam/cam_iosched.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/cam/cam_iosched.c b/sys/cam/cam_iosched.c index 9c0cb47e9968..df18d64bc42d 100644 --- a/sys/cam/cam_iosched.c +++ b/sys/cam/cam_iosched.c @@ -639,7 +639,8 @@ cam_iosched_cl_maybe_steer(struct control_loop *clp) clp->next_steer = now + clp->steer_interval; switch (clp->type) { case set_max: - if (isc->write_stats.current != isc->write_stats.max) + if (isc->write_stats.current != isc->write_stats.max && + isc->write_stats.limiter != none) { printf("Steering write from %d kBps to %d kBps\n", isc->write_stats.current, isc->write_stats.max); isc->read_stats.current = isc->read_stats.max; -- 2.32.0