Subject: Re: Limiting disk I/O?
To: Eric Haszlakiewicz <erh@nimenees.com>
From: Jukka Marin <jmarin@embedtronics.fi>
List: tech-kern
Date: 12/03/2007 07:33:09
On Sun, Dec 02, 2007 at 03:58:21PM -0600, Eric Haszlakiewicz wrote:
> except what you really need is more like:
> 
> while (something_to_be_flushed) {
>   if (systat_disk_%busy >= 90) {
> 	temporarily_let_new_io_bypass_softdep()
>   }
>   else
>     turn_off_bypass()
>   flush_some_data();
> };

That's true.  Makes it less beautiful. ;) :(

  -jm