]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Don't wakeup the fdc worker thread once a second when idle.
authorjhb <jhb@FreeBSD.org>
Tue, 5 Apr 2016 00:08:42 +0000 (00:08 +0000)
committerjhb <jhb@FreeBSD.org>
Tue, 5 Apr 2016 00:08:42 +0000 (00:08 +0000)
commit810bbe4137ab934213fd3f5eb68bbda35f23a2bc
tree6531bb5ae5c4e6bdad7cb0d3b2f757c592c53bb0
parent589cedfe0cde2b49d5f47fc240de37c8bf307abd
Don't wakeup the fdc worker thread once a second when idle.

The fdc worker thread was using a one second timeout while waiting for
a new bio to arrive or for the device to detach.  However, the driver
already does a wakeup when queueing a new bio or asking the thread to
detach, so the timeout only served to waste CPU time waking up the
thread once a second just so it could go right back to sleep.  Use an
infinite timeout instead.

Discussed with: phk
Sponsored by: Netflix
sys/dev/fdc/fdc.c