Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3537887imu; Sun, 11 Nov 2018 17:27:46 -0800 (PST) X-Google-Smtp-Source: AJdET5dJLjTtXkgVoP3u//4og3CBH+7GFc8v24LQZSt6oe+X7TCtRSyLi7DgrY1kf7gp2+zqfMRM X-Received: by 2002:a62:1095:: with SMTP id 21-v6mr17946303pfq.227.1541986066620; Sun, 11 Nov 2018 17:27:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541986066; cv=none; d=google.com; s=arc-20160816; b=Ioeae3DB6HvSx6l0XoNuoF9ZvC+JZPsMLt+3XrSlT5xoxYNpO37IkEGAi+gvTL11+K 8ltQib0GSs/n+73Avttnr0oJwDDULo9+Ugq9bgx6FJaHwoHzyI2q3r3LjPhy1WM85TNU RbxnsAtgSPxq5NTVnHGNR3FPpvw7pz5+6o9WBeXcXjeCgKLvK1oSduuOmKtQ46xk3y7K v5I+Eak51ONxU7hTzqOEi1Gw/izFTgEQ8hZkdgGMw9L2SKMbC0XlJQWHcQ2k29J4ofNa 8TKfQ07OJk29BTTTdHv6BAXp+hLc8w4SopPyVp7rMpeDnzRhHl/DFzrC9E+/FNI+MZtm doEQ== 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=l9SBhjCN4qNRKcpLdM2GHdUrP1yD8NgXJwYAwZwxEuA=; b=iut5luWTzEg8IxDfssq7M60V4/cqUmzEdGZW3W4h8P66eBQfiSld8NVxqW75jSYmw2 Ys0cNB18busppJLtQgTPodDtnpUkGZNJlrDyVbHjeVu1tj00GTRjcLn7hdcah52gAhvS n7lfS6upS15qH6IfV7McLQBRYS8l9ZnpozHj8lmI5vXboj1fJSLhH3iUp7RoCBzv/aJz wXVQQM9gryCUZoL/iyV7VuFEuq+hyAVYCgCDniurh7iZcAthDsHD/dnNGf5sZUF9Bq1V cQ3VxsIsgy9UfXDkF1TikaBOlN3Sbj7o9BdUGwllvWeM/OOMM3nSoRiJ2J8rheZd6YSn humA== 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 2si15668998pgz.395.2018.11.11.17.27.29; Sun, 11 Nov 2018 17:27:46 -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 S1729772AbeKLLRw (ORCPT + 99 others); Mon, 12 Nov 2018 06:17:52 -0500 Received: from mail-pf1-f196.google.com ([209.85.210.196]:39135 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727282AbeKLLRw (ORCPT ); Mon, 12 Nov 2018 06:17:52 -0500 Received: by mail-pf1-f196.google.com with SMTP id n11-v6so3469032pfb.6; Sun, 11 Nov 2018 17:27:07 -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=l9SBhjCN4qNRKcpLdM2GHdUrP1yD8NgXJwYAwZwxEuA=; b=Bb4o5q3zB1pHRwnykfMQtRZGfUp0UPeZzkvOOVeav6YeQ8qp9BOv1fPDuPy3g28nLZ qB6pzAi9NQkWO1Vjdb4hZA/TZJ+tBHaRAO9lbeL8w31RWgVRnqJpFfshWPeH6LitpR2u xuL2r5OlSgT72DxzTdaI2sFeToV0AFal58loC9cDVw0Dly1JQBXU1ERfVv6XQk2EjKXp /rhgU0wEVaAiFQOZPiKvHyZijNOUQbv2BPBqOW5ORlT0qvaiLIO3/CwCLVtFG1kxIR7+ EfHPozVpCUyAfFKApiu1v2X57UZimNl+HZXT3ntoTO+ORNcgBxPKbvjqOpMe+z39AJAF BiAQ== X-Gm-Message-State: AGRZ1gJLnLn5bCEoUL4hRdzrI4/qQSz7np8GF03sjcZKKo+aQWyL9ltG AmlFumnBT/FataMoHC1qeuqil25qGr0= X-Received: by 2002:a65:4646:: with SMTP id k6mr15562817pgr.153.1541986026782; Sun, 11 Nov 2018 17:27:06 -0800 (PST) Received: from asus.site ([2601:647:4601:5d98:fb3c:91c5:1423:24cd]) by smtp.gmail.com with ESMTPSA id f193-v6sm20402300pfc.74.2018.11.11.17.27.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 11 Nov 2018 17:27:06 -0800 (PST) Subject: Re: [PATCH 4.19 078/361] nvmet-rdma: use a private workqueue for delete To: Greg Kroah-Hartman , linux-kernel@vger.kernel.org Cc: stable@vger.kernel.org, Sagi Grimberg , Christoph Hellwig , Sasha Levin References: <20181111221619.915519183@linuxfoundation.org> <20181111221630.901793876@linuxfoundation.org> From: Bart Van Assche Message-ID: Date: Sun, 11 Nov 2018 17:27:05 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.0 MIME-Version: 1.0 In-Reply-To: <20181111221630.901793876@linuxfoundation.org> 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 On 11/11/18 2:17 PM, Greg Kroah-Hartman wrote: > 4.19-stable review patch. If anyone has any objections, please let me know. > > ------------------ > > From: Sagi Grimberg > > [ Upstream commit 2acf70ade79d26b97611a8df52eb22aa33814cd4 ] > > Queue deletion is done asynchronous when the last reference on the queue > is dropped. Thus, in order to make sure we don't over allocate under a > connect/disconnect storm, we let queue deletion complete before making > forward progress. > > However, given that we flush the system_wq from rdma_cm context which > runs from a workqueue context, we can have a circular locking complaint > [1]. Fix that by using a private workqueue for queue deletion. Hi Greg, You may want to drop this patch. A bug was discovered in this patch a few days ago. I think not backporting this patch is better than backporting it. See also the discussion at http://lists.infradead.org/pipermail/linux-nvme/2018-November/020766.html. A quote from that e-mail thread: "I think we need to revert 2acf70a ("nvmet-rdma: use a private workqueue for delete") altogether because it never made any difference..". Bart.