dsched - Add debugging & fix rare problem conditions
authorAlex Hornung <ahornung@gmail.com>
Sat, 27 Aug 2011 10:51:24 +0000 (10:51 +0000)
committerAlex Hornung <ahornung@gmail.com>
Sat, 27 Aug 2011 12:34:08 +0000 (12:34 +0000)
commitc7a0a046f2a7ef938aaa235cb6e934f2a3ba4345
tree6e643fad49564d1ba9a7407b245bfc7c036f198f
parent009da86a5800b6fefcda0a946ab02a089bd9254f
dsched - Add debugging & fix rare problem conditions

 * Add a bunch of debugging to see whether a particular tdio was
   initialized and to which policy it belongs.

 * Reorder some locking to ensure the whole switch of policy is
   protected as expected.

 * Make sure the tdio from the newest policy is used when there
   are tdios for several scheduling policies in the tdctx->tdio_list.

Reported-by: Brills Peng
sys/kern/kern_dsched.c
sys/sys/dsched.h