diff options
| -rw-r--r-- | block/test-iosched.c | 4 | ||||
| -rw-r--r-- | include/linux/test-iosched.h | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/block/test-iosched.c b/block/test-iosched.c index 41ef689f1d59..4779cf875180 100644 --- a/block/test-iosched.c +++ b/block/test-iosched.c @@ -775,10 +775,10 @@ int test_iosched_start_test(struct test_info *t_info) pr_info("%s: Waiting for the test completion", __func__); wait_event(ptd->wait_q, ptd->test_state == TEST_COMPLETED); - t_info->test_duration = ptd->test_info.test_duration; - t_info->test_byte_count = ptd->test_info.test_byte_count; del_timer_sync(&ptd->timeout_timer); + memcpy(t_info, &ptd->test_info, sizeof(struct test_info)); + ret = check_test_result(ptd); if (ret) { pr_err("%s: check_test_result failed", diff --git a/include/linux/test-iosched.h b/include/linux/test-iosched.h index 47383ae0675c..a444017f7282 100644 --- a/include/linux/test-iosched.h +++ b/include/linux/test-iosched.h @@ -130,7 +130,7 @@ struct test_request { * @check_test_result_fn: Test specific test result checking * callback * @get_test_case_str_fn: Test specific function to get the test name - * @test_duration: A jiffies value saved for timing + * @test_duration: A ktime value saved for timing * calculations * @data: Test specific private data * @test_byte_count: Total number of bytes dispatched in @@ -264,4 +264,6 @@ extern struct test_data *test_get_test_data(void); void test_iosched_add_urgent_req(struct test_request *test_rq); int test_is_req_urgent(struct request *rq); + +void check_test_completion(void); #endif /* _LINUX_TEST_IOSCHED_H */ |
