summaryrefslogtreecommitdiff
path: root/block
diff options
context:
space:
mode:
authorLee Susman <lsusman@codeaurora.org>2015-01-19 20:32:55 +0200
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-22 11:01:51 -0700
commitd4670e5bb02319eea09583146bc8097fd5bb66f7 (patch)
treeccaa41e4264b06b5522992b33d8e6d3b139b91c2 /block
parent2dcf7d92a9fa780920abf635f5d78df7259e2561 (diff)
scsi: ufs: long sequential read/write tests
This test adds the ability to test the UFS task management feature in the driver. It loads the queue with requests in order to allow the task management to operate in full capacity. Modify test-iosched infrastructure to support the new tests: - expose check_test_completion() Note: we submit 16-bio requests since the current HW is very slow and we don't want to exceed the timeout duration. Change-Id: I8ee752cba3c6838d8edc05747fa0288c4b347ef6 Signed-off-by: Dolev Raviv <draviv@codeaurora.org> Signed-off-by: Lee Susman <lsusman@codeaurora.org> [merez@codeaurora.org: fix trivial conflicts in ufs_test.c] Signed-off-by: Maya Erez <merez@codeaurora.org> [venkatg@codeaurora.org: Changes to ufs_test.c are already present as part of earlier commit, hence drop them here] Signed-off-by: Venkat Gopalakrishnan <venkatg@codeaurora.org>
Diffstat (limited to 'block')
-rw-r--r--block/test-iosched.c4
1 files changed, 2 insertions, 2 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",