Fixed tons of bugs in the scheduler... works fine for hdds now, ssd-mode still deadlocks sometimes