diff options
author | Dolev Raviv <draviv@codeaurora.org> | 2013-10-10 10:00:45 +0300 |
---|---|---|
committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-22 11:01:52 -0700 |
commit | 0c46efdd45194059042b6392bca1cd5b823fe8c8 (patch) | |
tree | e7bed6471d4acdf6321e2c03dd20de14f49506a7 /block | |
parent | d4670e5bb02319eea09583146bc8097fd5bb66f7 (diff) |
scsi: ufs: add support for test specific completion check
Introduce a new callback 'check_test_completion_fn' to test-iosched
framework. This callback is necessary to determine if a test has
completed or not in situation where the request queue is empty, but the
test was not completed.
Change-Id: I60bd8cccffacab11a5a7cba78caccf53fea3e1d8
Signed-off-by: Dolev Raviv <draviv@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.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/block/test-iosched.c b/block/test-iosched.c index 4779cf875180..fa0fcb0b404d 100644 --- a/block/test-iosched.c +++ b/block/test-iosched.c @@ -84,6 +84,10 @@ void check_test_completion(void) if (!ptd) goto exit; + if (ptd->test_info.check_test_completion_fn && + !ptd->test_info.check_test_completion_fn()) + goto exit; + list_for_each_entry(test_rq, &ptd->dispatched_queue, queuelist) if (!test_rq->req_completed) goto exit; |