#13 (maybe) fix for lousy spindown times on 2.6

closed-fixed
Daniel Kobras
None
5
2004-08-08
2004-08-01
Anonymous
No

I had a problem with /dev/hda spinning up immediately after spindown and saw that a 'cat /proc/sys/vm/dirty_writeback_centisecs' would still return '500' after the disk was spun down.

I added a fflush statement to pdflush_set_interval:

static int pdflush_set_interval(kupdate_t k, long interval)
{
long interval_dbg = 0;

rewind(k->f);
if (fprintf(k->f, "%ld\n", interval) < 0) {
ERR("Failed to set net update interval");
return 0;
}
fflush(k->f);
return 1;
}

and it works for me.

Discussion

  • Rüdiger Greeb
    Rüdiger Greeb
    2004-08-01

    Logged In: YES
    user_id=481948

    *grrr* ... thought that I could log in AFTER submitting post

     
  • Daniel Kobras
    Daniel Kobras
    2004-08-08

    • assigned_to: nobody --> nold
    • status: open --> closed-fixed
     
  • Daniel Kobras
    Daniel Kobras
    2004-08-08

    Logged In: YES
    user_id=7832

    Good catch! Thank you. Added to CVS.