DragonFly BSD
DragonFly commits List (threaded) for 2010-04
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: dsched_fq - Refactor fqp allocation/destruction

From: Alex Hornung <alexh@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 15 Apr 2010 13:25:38 -0700 (PDT)

commit edd247d31a4c3de0b873a975b4cb8230f858031f
Author: Alex Hornung <ahornung@gmail.com>
Date:   Tue Apr 13 07:15:10 2010 +0000

    dsched_fq - Refactor fqp allocation/destruction
    * Accept another argument for fqp allocation which is the corresponding
      fqmp. This is internally stored for proper self-removal out of the
      fqmp list on destruction.
    * This parameter is also used to link the fqp into the fqmp list
      automatically on creation, avoiding code duplication and deadlocking.
    * Changed the destruction refcount to -0x400 instead of -3 to make
      tracking of these cases simpler and not confuse them with bad
    * NOTE: this also fixes the longstanding issue of an eventual panic
      after a number of policy switches to/from fq.
    Reported-by: Antonio Huete (tuxillo@)

Summary of changes:
 sys/dsched/fq/dsched_fq.h         |    2 +-
 sys/dsched/fq/dsched_fq_core.c    |   40 +++++++++++++++++++-----------------
 sys/dsched/fq/dsched_fq_diskops.c |    8 +-----
 3 files changed, 24 insertions(+), 26 deletions(-)


DragonFly BSD source repository

[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]