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:
parent
ef94ce156f
commit
dbe45fb01e
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue