From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 10CC2ECE567 for ; Tue, 18 Sep 2018 10:19:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B77D021471 for ; Tue, 18 Sep 2018 10:19:56 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B77D021471 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729249AbeIRPvt (ORCPT ); Tue, 18 Sep 2018 11:51:49 -0400 Received: from mx1.redhat.com ([209.132.183.28]:46798 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726768AbeIRPvt (ORCPT ); Tue, 18 Sep 2018 11:51:49 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id A38AAC04BD48 for ; Tue, 18 Sep 2018 10:19:54 +0000 (UTC) Received: from localhost (ovpn-8-16.pek2.redhat.com [10.72.8.16]) by smtp.corp.redhat.com (Postfix) with ESMTP id 328F6608E5; Tue, 18 Sep 2018 10:19:50 +0000 (UTC) From: Ming Lei To: linux-kernel@vger.kernel.org Cc: Ming Lei Subject: [PATCH 0/4] blk-mq: allow to unfreeze queue when io isn't drained Date: Tue, 18 Sep 2018 18:19:42 +0800 Message-Id: <20180918101946.13329-1-ming.lei@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Tue, 18 Sep 2018 10:19:54 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, The 1st patch is one cleanup and prepares for introducing percpu_ref_resurge(). The 2nd patch introduces percpu_ref_resurge() for implementing blk_mq_unfreeze_queue_no_drain_io(). The 3rd patch introdces blk_mq_unfreeze_queue_no_drain_io() for cases in which queue can be unfreeze without draininig IO. The 4th 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 (4): percpu-refcount: move zeroing of percpu part into percpu_ref_switch_to_atomic_rcu 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 | 71 +++++++++++++++++++++++++++++++---------- 7 files changed, 90 insertions(+), 25 deletions(-) -- 2.9.5