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>
This commit is contained in:
Dolev Raviv 2013-10-27 13:25:43 +02:00
parent 139735ae3d
commit 163f46e7fe
1 changed files with 1 additions and 0 deletions

View File

@ -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;