From patchwork Fri Jan 25 00:12:46 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liu Bo X-Patchwork-Id: 10780319 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9E3D31399 for ; Fri, 25 Jan 2019 00:13:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8B3692F802 for ; Fri, 25 Jan 2019 00:13:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 79AD22F81A; Fri, 25 Jan 2019 00:13:10 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E54AC2F802 for ; Fri, 25 Jan 2019 00:13:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727743AbfAYANJ (ORCPT ); Thu, 24 Jan 2019 19:13:09 -0500 Received: from out30-45.freemail.mail.aliyun.com ([115.124.30.45]:34583 "EHLO out30-45.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726173AbfAYANI (ORCPT ); Thu, 24 Jan 2019 19:13:08 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R111e4;CH=green;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04420;MF=bo.liu@linux.alibaba.com;NM=1;PH=DS;RN=3;SR=0;TI=SMTPD_---0TIwm2.D_1548375186; Received: from localhost(mailfrom:bo.liu@linux.alibaba.com fp:SMTPD_---0TIwm2.D_1548375186) by smtp.aliyun-inc.com(127.0.0.1); Fri, 25 Jan 2019 08:13:07 +0800 From: Liu Bo To: linux-block@vger.kernel.org Cc: Josef Bacik , Jens Axboe Subject: [PATCH v2 0/3] iolatency bug fix Date: Fri, 25 Jan 2019 08:12:46 +0800 Message-Id: <20190125001249.72688-1-bo.liu@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.2.gb21ebb6 MIME-Version: 1.0 Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This set is to fix a hang case if blk-iolatency is in use. The 1st patch explains the hang problem with more details and provides a fix. The 2nd patch adds a warning for unexpected inflight counter. The 3rd patch is a cleanup of blk_mq_freeze_queue. v2: reorder the actual fix to the first patch. Liu Bo (3): blk-iolatency: fix IO hang due to negative inflight counter Blk-iolatency: warn on negative inflight IO counter blk-mq: remove duplicated definition of blk_mq_freeze_queue block/blk-iolatency.c | 56 ++++++++++++++++++++++++++++++++++++------- block/blk-mq.h | 1 - 2 files changed, 48 insertions(+), 9 deletions(-)