block,cfq: change code order
authorShaohua Li <shaohua.li@intel.com>
Thu, 19 Jan 2012 08:20:09 +0000 (09:20 +0100)
committerJens Axboe <axboe@kernel.dk>
Thu, 19 Jan 2012 08:20:09 +0000 (09:20 +0100)
commitdf0793abb929e66606fa25f3875ff1b89de5ad32
treefa53e6e4e7f4a6773f45173132bbfd77908f7c17
parent90a4c0f51e8e44111a926be6f4c87af3938a79c3
block,cfq: change code order

cfq_slice_expired will change saved_workload_slice. It should be called
first so saved_workload_slice is correctly set to 0 after workload type
is changed.
This fixes the code order changed by 54b466e44b1c7.

Tested-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: Shaohua Li <shaohua.li@intel.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/cfq-iosched.c