Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2499949imm; Mon, 24 Sep 2018 05:31:41 -0700 (PDT) X-Google-Smtp-Source: ACcGV637CTkd8D5ZRWtF8RYptKsVGIzKa3uto2yEaIu8pkTYbntxv/OMp/R7x+9/wMcT2ADd0cwe X-Received: by 2002:a63:cd02:: with SMTP id i2-v6mr9086145pgg.93.1537792301694; Mon, 24 Sep 2018 05:31:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537792301; cv=none; d=google.com; s=arc-20160816; b=KQX/YheOxPDt0CSfOTdHtQ62K5h+j5JOHgOdYIxiA9TLAYxmsz7lo1yP2G8ADxPzCw IEhpxd7M16W6qwv+MOKHcBcN/RwOtO9Wwrh6UQjBasU9eOUThUtdLtZRMn4FbLCYZ23t 6NrtyxZEEys+v3wcO9uO0TTqcdcczHS9E42c6AvNdYUolDq478hRLkUqrpaLToQCUIEa a/r4NtAFT2DVECwpq3HEenXt9tsxKpLdNKmnGepo+ckeboP7ECINDvkksKGIqxBlSLIH 0Cd9sC7cv7EgwjFyVS6CabvSrXoWS/usyBLNx4UUKGOXlup5nC0Awjco/BIbsS0BDldv hLEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from; bh=hOR/7XOvdNQs+yZbc00MVvSIc5G5QM8H/hfw23wVyOU=; b=AXWc7pxtQdkS6ZIbuQaWpXgyJbLVloB5u9gJQ5vBWWFFxsYt0+AK+X2zcPLKXCi4QH l8omldOnrSZRllSDsRVyTovDSBHw1LtMopFp1pO1yQiFkXNUPlevwZa7DChnOoWe2KcA 8ml1PfzCILvfkz5A10B3P5dVVNisdD1Dg3MT9TEEUtCkxtNwhHtvUSgkGbE5cvewZaov /LkHoQl/sfupHp7apyEEO+JC2ribRF2J6550YcyOFrV8vKF02RjPX0EbNG759nmIVkDw zgveCY68xQkl1ygQQ4/2DPd+lsw9yFnEi+LDm3XiH6rHyKypZIYH38Xzn3SG3Xjqi6hx GFdg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b28-v6si3322098pfh.233.2018.09.24.05.31.26; Mon, 24 Sep 2018 05:31:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387481AbeIXScU (ORCPT + 99 others); Mon, 24 Sep 2018 14:32:20 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:57800 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730321AbeIXScU (ORCPT ); Mon, 24 Sep 2018 14:32:20 -0400 Received: from localhost (ip-213-127-77-73.ip.prioritytelecom.net [213.127.77.73]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 229321098; Mon, 24 Sep 2018 12:30:24 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sagi Grimberg , Christoph Hellwig , Sasha Levin Subject: [PATCH 4.18 062/235] nvme-rdma: unquiesce queues when deleting the controller Date: Mon, 24 Sep 2018 13:50:48 +0200 Message-Id: <20180924113111.284790108@linuxfoundation.org> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20180924113103.999624566@linuxfoundation.org> References: <20180924113103.999624566@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Sagi Grimberg [ Upstream commit 90140624e8face94207003ac9a9d2a329b309d68 ] If the controller is going away, we need to unquiesce the IO queues so that all pending request can fail gracefully before moving forward with controller deletion. Do that before we destroy the IO queues so blk_cleanup_queue won't block in freeze. Signed-off-by: Sagi Grimberg Signed-off-by: Christoph Hellwig Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/nvme/host/rdma.c | 2 ++ 1 file changed, 2 insertions(+) --- a/drivers/nvme/host/rdma.c +++ b/drivers/nvme/host/rdma.c @@ -1741,6 +1741,8 @@ static void nvme_rdma_shutdown_ctrl(stru nvme_rdma_stop_io_queues(ctrl); blk_mq_tagset_busy_iter(&ctrl->tag_set, nvme_cancel_request, &ctrl->ctrl); + if (shutdown) + nvme_start_queues(&ctrl->ctrl); nvme_rdma_destroy_io_queues(ctrl, shutdown); }