block: fix test crashing due to synchronization issue

The __blk_run_queue function is called from several contexts. The fix is
replacing it with blk_run_queue function, this function is guarded with
a lock, thus making it thread safe and prevents the crashing.

Change-Id: I3e12fa9c8b9e161375fffa3570abfa46b223a60b
Signed-off-by: Dolev Raviv <draviv@codeaurora.org>
This commit is contained in:
Dolev Raviv 2013-02-12 17:11:17 +02:00 committed by Jay Chokshi
parent f7a8951798
commit 17e5e1e962
1 changed files with 2 additions and 2 deletions

View File

@ -576,7 +576,7 @@ static int run_test(struct test_data *td)
return ret;
}
__blk_run_queue(td->req_q);
blk_run_queue(td->req_q);
return 0;
}
@ -800,7 +800,7 @@ int test_iosched_start_test(struct test_info *t_info)
* Wakeup the queue thread to fetch FS requests that might got
* postponded due to the test
*/
__blk_run_queue(ptd->req_q);
blk_run_queue(ptd->req_q);
if (ptd->ignore_round)
test_pr_info(