From 0c46efdd45194059042b6392bca1cd5b823fe8c8 Mon Sep 17 00:00:00 2001 From: Dolev Raviv Date: Thu, 10 Oct 2013 10:00:45 +0300 Subject: 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 [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 --- include/linux/test-iosched.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') 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; }; -- cgit v1.2.3