From 2e5c505a5059f42b081bf6b6d22377c1eb2ab963 Mon Sep 17 00:00:00 2001 From: Gilad Broner Date: Thu, 30 Oct 2014 17:28:55 +0200 Subject: block: test-iosched: remove test timeout timer When running a test, a timer was set to detect test timeout and to unblock the wait_event() function which is waiting for the test to finish. This is redundant as wait_event timeout variant gives the same functionality without the overhead of managing a timer for this purpose and improve code readability. Change-Id: Icbd3cb0f3fcb5854673f4506b102b0c80e97d6bb Signed-off-by: Gilad Broner --- include/linux/test-iosched.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'include/linux') diff --git a/include/linux/test-iosched.h b/include/linux/test-iosched.h index 691f7df176f6..717a3ad760e7 100644 --- a/include/linux/test-iosched.h +++ b/include/linux/test-iosched.h @@ -191,8 +191,6 @@ struct blk_dev_test_type { * new BIOs. * @start_sector: The address of the first sector that can * be accessed by the test - * @timeout_timer: A timer to verify test completion in - * case of non-completed requests * @wr_rd_next_req_id: A unique ID to identify WRITE/READ * request to ease the debugging of the * test cases @@ -225,7 +223,6 @@ struct test_data { struct request_queue *req_q; int num_of_write_bios; u32 start_sector; - struct timer_list timeout_timer; int wr_rd_next_req_id; int unique_next_req_id; spinlock_t lock; -- cgit v1.2.3