Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp79177imu; Mon, 10 Dec 2018 16:34:09 -0800 (PST) X-Google-Smtp-Source: AFSGD/XNyPMKFiSQhYDZ9ICKdvdnvwOuwg9FQQgX0cGVAi7q7ccz2JstYjEaQq/+V8/NQQcph3oL X-Received: by 2002:a65:5387:: with SMTP id x7mr12803260pgq.412.1544488449454; Mon, 10 Dec 2018 16:34:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544488449; cv=none; d=google.com; s=arc-20160816; b=l4tdIZJxH0UUTn+E/g3T3AdiMYdX9tpS44nxwG3G+ctUHwK/35P57I5PDUDqn1dZE+ J8d/MAtyBpBTxxapevmWjSBczGyqwCxSHvD46DegE4474DmZQmWInN7kaUs+kQ/YjZFK 7wEWHe946QXfTsgPZQFh1qEvYZx1HTHnnkTt0UiWgQuruh4CQd2dzTwmDtnWRLml1bap H2LMtl0KN9lWH9Ae7uQeOiVDCAgHIUv9IOSwmjFIntSh+6YwWUT2BY8Fl5od32NClWT7 /QC6gUMoYRHNWg5bh9+/odbj0XsleB78KcyJ3h8JlaNyD2QJ63vAPImKBw28Z7U6yi1R RNFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=5lHAcv/QXMe2YI9fXzyLxIPXQ2T2mb3s2pqJM8ZHvZw=; b=Pm6TbAsinrdH3g9gxtF82v2a8XhPRMC/fclU3AAWfY0rg4cx6JDSHK6dtkOnTj3p2d PwAhvKEQWqbsobWV3KOrAGsoT3a75uF1XwlYCgOwQBbNAnmogy/bkqiwpSQL+NKmLjrB iisP4esJUZnMT0zR1cDIhakbRAXKAhncB4zMI21IuniMtRW/JvySZAzrz6en7PxS+e65 62MB1RMBF9k20ouE4kWxzFTbDRt8ey3/br2BXAz0VuT3Qb5FZ1nMv7T/o+wZsDZ3Paee Vlk6NWagKGZ/ugA9i0Jqym28j2Wc5p4EoceemQXeuuCrkm8jZYfd/tKjUa6h1NTS4vdl nUMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@purestorage.com header.s=google header.b="iwH2r7d/"; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=purestorage.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 9si9798017pgm.112.2018.12.10.16.33.54; Mon, 10 Dec 2018 16:34:09 -0800 (PST) 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; dkim=pass header.i=@purestorage.com header.s=google header.b="iwH2r7d/"; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=purestorage.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728738AbeLJXk3 (ORCPT + 99 others); Mon, 10 Dec 2018 18:40:29 -0500 Received: from mail-qt1-f170.google.com ([209.85.160.170]:38493 "EHLO mail-qt1-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726607AbeLJXk3 (ORCPT ); Mon, 10 Dec 2018 18:40:29 -0500 Received: by mail-qt1-f170.google.com with SMTP id p17so14471958qtl.5 for ; Mon, 10 Dec 2018 15:40:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=purestorage.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=5lHAcv/QXMe2YI9fXzyLxIPXQ2T2mb3s2pqJM8ZHvZw=; b=iwH2r7d/HDHiNgSiLGqSabAf4j2C7oyYqWEafoKgyo5bw2f28Piz8e3e9Ai+nPAfjS wTLGlZ60vjpKnDXsTP7JlWIK+/vXruflErdge86pnixa1Nizj4pCAo8XbZ3j4z9PDlZu Sn7JwN5ZkNaoRABUUq1DIR9PJCbYft9w2F6g0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=5lHAcv/QXMe2YI9fXzyLxIPXQ2T2mb3s2pqJM8ZHvZw=; b=ZjB5yXq7MxADoiR3S8rrtBYEMx07zPX3TRiqa5jTlUkkgtABHfKie9QUB3akT4WG9y r0ZRMd0b1Frtftp8TH0l3jT87qSi3kfY3Tw/AnzTDomAKaqsphPb8VoMzgSEAE/l0wfu xhG1Tnn4mmO3uIdnGuvyNSLbG86dnQGvV3phV2AHbsa+ufMmiswRXMRkrgtR6ZfF9fbM rqGiTDqu0kkS4xO0zDYlh6f1cDRAa8ppPR+B0LOp5FPKJXXP2cM5Gj9Vm5fjxFHgpDXg 32ONb00ESILuDtYsliBBdt0UHy00WMBwWLgsu7Klj3lHiz7HaEGr+WvgImRdQYqEdFSk 1HgQ== X-Gm-Message-State: AA+aEWatUP5RjCITPHpZuwvyvdNZ2CNJ6dp+ioqBNJtAT27n7jM0x7ZS ZjTGpvQ6alkrM1klTAuFNe9qJNHTBjT7rLGTqzGu7w== X-Received: by 2002:a0c:e5c1:: with SMTP id u1mr13552132qvm.113.1544485227829; Mon, 10 Dec 2018 15:40:27 -0800 (PST) MIME-Version: 1.0 References: <1543535954-28073-1-git-send-email-jalee@purestorage.com> In-Reply-To: From: Jaesoo Lee Date: Mon, 10 Dec 2018 15:40:16 -0800 Message-ID: Subject: Re: [PATCH] nvme-rdma: complete requests from ->timeout To: nitzanc@mellanox.com Cc: sagi@grimberg.me, keith.busch@intel.com, axboe@fb.com, hch@lst.de, Roland Dreier , Prabhath Sajeepa , Ashish Karkare , linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org It seems that your patch is addressing the same bug. I will see if that works for our failure scenarios. Why don't you make it upstream? On Sun, Dec 9, 2018 at 6:22 AM Nitzan Carmi wrote: > > Hi, > We encountered similar issue. > I think that the problem is that error_recovery might not even be > queued, in case we're in DELETING state (or CONNECTING state, for that > matter), because we cannot move from those states to RESETTING. > > We prepared some patches which handle completions in case such scenario > happens (which, in fact, might happen in numerous error flows). > > Does it solve your problem? > Nitzan. > > > On 30/11/2018 03:30, Sagi Grimberg wrote: > > > >> This does not hold at least for NVMe RDMA host driver. An example > >> scenario > >> is when the RDMA connection is gone while the controller is being > >> deleted. > >> In this case, the nvmf_reg_write32() for sending shutdown admin > >> command by > >> the delete_work could be hung forever if the command is not completed by > >> the timeout handler. > > > > If the queue is gone, this means that the queue has already flushed and > > any commands that were inflight has completed with a flush error > > completion... > > > > Can you describe the scenario that caused this hang? When has the > > queue became "gone" and when did the shutdown command execute? > > > > _______________________________________________ > > Linux-nvme mailing list > > Linux-nvme@lists.infradead.org > > http://lists.infradead.org/mailman/listinfo/linux-nvme