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 /include/linux | |
| 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 'include/linux')
| -rw-r--r-- | include/linux/test-iosched.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/test-iosched.h b/include/linux/test-iosched.h index a444017f7282..6198b798980f 100644 --- a/include/linux/test-iosched.h +++ b/include/linux/test-iosched.h @@ -40,6 +40,7 @@ typedef char* (get_test_case_str_fn) (struct test_data *); typedef void (blk_dev_test_init_fn) (void); typedef void (blk_dev_test_exit_fn) (void); typedef struct gendisk* (get_rq_disk_fn) (void); +typedef bool (check_test_completion_fn) (void); /** * enum test_state - defines the state of the test @@ -146,6 +147,7 @@ struct test_info { get_test_case_str_fn *get_test_case_str_fn; ktime_t test_duration; get_rq_disk_fn *get_rq_disk_fn; + check_test_completion_fn *check_test_completion_fn; void *data; unsigned long test_byte_count; }; |
