summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDolev Raviv <draviv@codeaurora.org>2013-10-27 13:25:43 +0200
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-22 11:01:48 -0700
commitdbe45fb01e3a51698821bce8f9cc6e6d613b1022 (patch)
tree01553eacf602bd03320e660f88113012a74b0db8
parentef94ce156fe42f32dadf735523b209bb45cd189a (diff)
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>
-rw-r--r--block/test-iosched.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/block/test-iosched.c b/block/test-iosched.c
index e9936c639c17..b85a4a961408 100644
--- a/block/test-iosched.c
+++ b/block/test-iosched.c
@@ -352,6 +352,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;