From 5d951856df6d6dc8833d226a3aee2c59ce3f5fb8 Mon Sep 17 00:00:00 2001 From: Xiaoguang Wang Date: Tue, 21 Jul 2020 20:22:40 +0800 Subject: [PATCH] alinux: block: initialize io hang counter fix #29420707 Otherwise we'll get stale io hang counter. Signed-off-by: Xiaoguang Wang Reviewed-by: Joseph Qi --- block/genhd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/block/genhd.c b/block/genhd.c index d684dce1e3b2..cee247f2c4b2 100644 --- a/block/genhd.c +++ b/block/genhd.c @@ -102,6 +102,7 @@ static void blk_in_hang_rw(struct request_queue *q, struct hd_struct *part, struct request *rq, *tmp; now = ktime_get_ns(); + hang[0] = hang[1] = 0; spin_lock_irqsave(q->queue_lock, flags); list_for_each_entry_safe(rq, tmp, &q->timeout_list, timeout_list) { -- GitLab