Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1243749imu; Tue, 11 Dec 2018 15:40:13 -0800 (PST) X-Google-Smtp-Source: AFSGD/UJC52S8PL4ty0RCfz0e6i6Iyn3dXoV8Aw2sRwNOiP4fyxlFnYf28Z06yfymuAbrG/cVHNt X-Received: by 2002:a62:cf84:: with SMTP id b126mr18002705pfg.98.1544571613307; Tue, 11 Dec 2018 15:40:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544571613; cv=none; d=google.com; s=arc-20160816; b=l2GEcdAExkmTmRuf5sib41LRuQ8KQvXGX0bVtjoQZ+XI5eF1cUbzjr7S2Zc0w3Rlhe l2fRq3DJnCYk3Yfjq2p3r/B5vtX9WHCMT6qvtF6BwMl6waCaTGfPLT5RKOyzCMhSOHyw fAMIXMJWvQsNu3tPszeBL/zh+cik6ALJh+pnq5fELOhnA6f8QYPIMGhtjM/yRvzMQmmf pDcpX7zDR0CG7J4oOLrfgNeXgEjVK9bha/j6g0q0DiTgYjOIQdssg6J//X5ViUJBvLz/ x6HfBrfIB3+bv8DKFbWcbSw7A8CS53DQRjFFMLGFrzrRYHb1y/HdJheF4JRaBk5Ij+HG dlXA== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=VZ+c/zPZIl/2ZFGhTHuBpV4gAexNl5wODnJ7t/X6I6M=; b=K53l+x4+KhoTL/m4bihgVwBZWvRgtIGapyw1sn5wKYs8D9ReQwHSfTe6Pm6xKB1I52 jcHOKT1cpQModNUJ3rQoPcJ3vx5N08GOr9bdtpeu6IRJB6imSaq299OWNM8qwEO70Cle 8isCttiJrwCvZX5AGjqFN24mjI48Pw0CNI6lEbUOK2ZpZFOEcu84ceEw5E+ivKY0Un0B O+wMt21K7riXeTZUVFxnIJ6JiLn0BiMsXqEAQg8wpGynAZZE7hTEjmh3Pw2R6Rz+Xt3H 38fagz4ArSVi2V0vbWKOzNPE7vqOsMeyVRF9WAy8LuDW0YLCP6p1RnBYviwyB33Kn2et c2pA== 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 p9si14205857pll.63.2018.12.11.15.39.58; Tue, 11 Dec 2018 15:40:13 -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; 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 S1726243AbeLKXjC (ORCPT + 99 others); Tue, 11 Dec 2018 18:39:02 -0500 Received: from mail-ot1-f65.google.com ([209.85.210.65]:35044 "EHLO mail-ot1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726158AbeLKXjB (ORCPT ); Tue, 11 Dec 2018 18:39:01 -0500 Received: by mail-ot1-f65.google.com with SMTP id 81so15906573otj.2 for ; Tue, 11 Dec 2018 15:39:01 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=VZ+c/zPZIl/2ZFGhTHuBpV4gAexNl5wODnJ7t/X6I6M=; b=SK3oUtyJK96DOkxpnVQsljLKXxSB2AOT8DF/VdOMsl8WP2bswHT/WMH6fvfiyTgImH f2DFBTitwGNC6d31nbjGqtUukNgTVvGjtsjSBagpEroR8e/Z6LjKYVjWu732vWFHU82A 2IgR24rCQpedZCc0mHD1vUQ7CAQJ7db5uz6gnSZuqYIoM79bIbkmT3Qoep3xdrKVwSCC ezW30wAaVaq+MV/x1N0phyvC9ZQ/psn29+cGcoYqH8/q+LiU3B6m7+IainfQqVreLTK/ F+Uw6U5Eb60krazQUrTgC1UbpwIxncczCnAROhnMQ7dFcqsbkvWrBeioyGx5W3G6ybgV 5D3A== X-Gm-Message-State: AA+aEWZeZB4Xj9OSA2wN6YnhbSVYffzDwUTT9zbEhV1NX5yBeq+WsQGC 4KMzYYH+hRDl1umwmuwHxXw= X-Received: by 2002:a9d:a78:: with SMTP id 111mr12577789otg.229.1544571541120; Tue, 11 Dec 2018 15:39:01 -0800 (PST) Received: from ?IPv6:2600:1700:65a0:78e0:514:7862:1503:8e4d? ([2600:1700:65a0:78e0:514:7862:1503:8e4d]) by smtp.gmail.com with ESMTPSA id l1sm7815580oib.10.2018.12.11.15.38.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 11 Dec 2018 15:39:00 -0800 (PST) Subject: Re: [PATCH] nvme-rdma: complete requests from ->timeout To: Jaesoo Lee , nitzanc@mellanox.com Cc: 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 References: <1543535954-28073-1-git-send-email-jalee@purestorage.com> <773bb91f-40a4-a525-f7b8-db821b402821@mellanox.com> From: Sagi Grimberg Message-ID: Date: Tue, 11 Dec 2018 15:38:57 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > I cannot reproduce the bug with the patch; in my failure scenarios, it > seems that completing the request on errors in nvme_rdma_send_done > makes __nvme_submit_sync_cmd to be unblocked. Also, I think this is > safe from the double completions. > > However, it seems that nvme_rdma_timeout code is still not free from > the double completion problem. So, it looks promising to me if you > could separate out the nvme_rdma_wr_error handling code as a new > patch. Guys, can you please send proper patches so we can review properly?