diff options
author | Dolev Raviv <draviv@codeaurora.org> | 2013-02-12 17:11:17 +0200 |
---|---|---|
committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-22 11:01:46 -0700 |
commit | 2bf9babb4d36c928a3b71cd4fdf68ce33b18446b (patch) | |
tree | 2166c5865c666ca6368dede5f0f790dedfc39e01 /block | |
parent | da2d513f18ea787099c08dfabd50408494bd7efd (diff) |
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>
Diffstat (limited to 'block')
-rw-r--r-- | block/test-iosched.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/block/test-iosched.c b/block/test-iosched.c index d405bbcdc236..915ff3a7771c 100644 --- a/block/test-iosched.c +++ b/block/test-iosched.c @@ -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( |