提交 5d951856 编写于 作者: X Xiaoguang Wang 提交者: Caspar Zhang

alinux: block: initialize io hang counter

fix #29420707

Otherwise we'll get stale io hang counter.
Signed-off-by: NXiaoguang Wang <xiaoguang.wang@linux.alibaba.com>
Reviewed-by: NJoseph Qi <joseph.qi@linux.alibaba.com>
上级 71228589
...@@ -102,6 +102,7 @@ static void blk_in_hang_rw(struct request_queue *q, struct hd_struct *part, ...@@ -102,6 +102,7 @@ static void blk_in_hang_rw(struct request_queue *q, struct hd_struct *part,
struct request *rq, *tmp; struct request *rq, *tmp;
now = ktime_get_ns(); now = ktime_get_ns();
hang[0] = hang[1] = 0;
spin_lock_irqsave(q->queue_lock, flags); spin_lock_irqsave(q->queue_lock, flags);
list_for_each_entry_safe(rq, tmp, &q->timeout_list, timeout_list) { list_for_each_entry_safe(rq, tmp, &q->timeout_list, timeout_list) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册