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:
parent
da2d513f18
commit
2bf9babb4d
1 changed files with 2 additions and 2 deletions
|
@ -573,7 +573,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;
|
||||
}
|
||||
|
@ -802,7 +802,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(
|
||||
|
|
Loading…
Add table
Reference in a new issue