From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com ([209.132.183.28]:51246 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727161AbeIRPso (ORCPT ); Tue, 18 Sep 2018 11:48:44 -0400 Date: Tue, 18 Sep 2018 18:16:37 +0800 From: Ming Lei To: linux-kernel@vger.kernel.org Cc: Tejun Heo , Jianchao Wang , Kent Overstreet , linux-block@vger.kernel.org, Christoph Hellwig , linux-nvme@lists.infradead.org, Keith Busch Subject: Re: [PATCH 0/3] blk-mq: allow to unfreeze queue when io isn't drained Message-ID: <20180918101636.GA13212@ming.t460p> References: <20180918101310.13154-1-ming.lei@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <20180918101310.13154-1-ming.lei@redhat.com> Sender: linux-block-owner@vger.kernel.org List-Id: linux-block@vger.kernel.org On Tue, Sep 18, 2018 at 06:13:07PM +0800, Ming Lei wrote: > Hi, > > The 1st patch introduces percpu_ref_resurge() for implementing > blk_mq_unfreeze_queue_no_drain_io(). > > The 2nd patch introdces blk_mq_unfreeze_queue_no_drain_io() for > cases in which queue can be unfreeze without draininig IO. > > The 3rd patch applies blk_mq_unfreeze_queue_no_drain_io() to > NVMe PCI timeout, so that IO hang may be avoided inside > nvme_reset_work() when new IO timeout is triggered. > > Part of idea is from Jianchao's early work: > > https://marc.info/?l=linux-kernel&m=153612052611020&w=2 > > Ming Lei (3): > lib/percpu-refcount: introduce percpu_ref_resurge() > blk-mq: introduce blk_mq_unfreeze_queue_no_drain_io > nvme: don't drain IO in nvme_reset_work() > > block/blk-mq.c | 25 ++++++++++++++-- > drivers/nvme/host/core.c | 12 +++++--- > drivers/nvme/host/nvme.h | 2 +- > drivers/nvme/host/pci.c | 3 +- > include/linux/blk-mq.h | 1 + > include/linux/percpu-refcount.h | 1 + > lib/percpu-refcount.c | 63 ++++++++++++++++++++++++++++++++++------- > 7 files changed, 87 insertions(+), 20 deletions(-) > > Cc: Tejun Heo > Cc: Jianchao Wang > Cc: Kent Overstreet > Cc: linux-block@vger.kernel.org > Cc: Christoph Hellwig > Cc: linux-nvme@lists.infradead.org > Cc: Keith Busch > Ooops, there is one extra patch missed. Please ignore this series. Thanks, Ming