diff options
author | Dolev Raviv <draviv@codeaurora.org> | 2013-10-27 13:25:43 +0200 |
---|---|---|
committer | Dolev Raviv <draviv@codeaurora.org> | 2013-10-27 13:26:08 +0200 |
commit | 163f46e7fe11dfd470a115c58a49c59e5f78e4a0 (patch) | |
tree | 18e15f2cfae3d01931344fbfcf63937542af3060 /block | |
parent | 139735ae3d585685dd8a357fbbc287d0a70d945c (diff) | |
download | qcom-msm-v3.10-163f46e7fe11dfd470a115c58a49c59e5f78e4a0.tar.gz |
block: test-iosched: disable statistic flag on request
The flag REQ_IO_STAT is enabled by default this assumes statistics are
initialized and might cause NULL references in the kernel. To avoid it
this flag is cleared in the request and stats are not updated.
Change-Id: I6a1890dde51dfa8ffdd376b13f4466c9db0ae05b
Signed-off-by: Dolev Raviv <draviv@codeaurora.org>
Diffstat (limited to 'block')
-rw-r--r-- | block/test-iosched.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/block/test-iosched.c b/block/test-iosched.c index fdc45d5ce9c..42711adfe30 100644 --- a/block/test-iosched.c +++ b/block/test-iosched.c @@ -356,6 +356,7 @@ struct test_request *test_iosched_create_test_req(int is_err_expcted, rq->__sector = start_sec; rq->cmd_type |= REQ_TYPE_FS; rq->cmd_flags |= REQ_SORTED; + rq->cmd_flags &= ~REQ_IO_STAT; if (rq->bio) { rq->bio->bi_sector = start_sec; |