From dbe45fb01e3a51698821bce8f9cc6e6d613b1022 Mon Sep 17 00:00:00 2001 From: Dolev Raviv Date: Sun, 27 Oct 2013 13:25:43 +0200 Subject: [PATCH] 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 --- block/test-iosched.c | 1 + 1 file changed, 1 insertion(+) 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;