]> git.proxmox.com Git - mirror_zfs-debian.git/commit
Fix inflated load average
authorBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 1 Apr 2011 00:07:12 +0000 (17:07 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 1 Apr 2011 00:07:12 +0000 (17:07 -0700)
commitbfd214af01dd360417b1331d903655244979fe0f
tree2fbc8f582bfe96968e8f5d600f4166742bd102b9
parent1f5fd9d47815770fc8e0fea7028229fd0826871c
Fix inflated load average

Kernel threads which sleep uninterruptibly on Linux are marked in the (D)
state.  These threads are usually in the process of performing IO and are
thus counted against the load average.  The txg_quiesce and txg_sync threads
were always sleeping uninterruptibly and thus inflating the load average.

This change makes them sleep interruptibly.  Some care is required however
because these threads may now be woken early by signals.  In this case the
callers are all careful to check that the required conditions are met after
waking up.  If we're woken early due to a signal they will simply go back
to sleep.  In this case these changes are safe.

Closes #175
module/zfs/txg.c