Received: by 2002:ab2:3319:0:b0:1ef:7a0f:c32d with SMTP id i25csp674133lqc; Fri, 8 Mar 2024 08:31:15 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXaTanJVmsAdF0LagyQUFU+AmYqZVnQ6KOEx8o1uVv0D5JU42uC/CMay4a2ZR+dF9rkUz5ZTtETq/05ExjeK+PGMBM65Y8RXX9LQmJyjQ== X-Google-Smtp-Source: AGHT+IFkSmOOtlp6ApDa9hnG4J62XkRO+QJa96KrLwQRQXN3s3udOTRbpDleguw8izscvnMHcakN X-Received: by 2002:a50:d753:0:b0:567:ff28:653b with SMTP id i19-20020a50d753000000b00567ff28653bmr597819edj.20.1709915475030; Fri, 08 Mar 2024 08:31:15 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709915475; cv=pass; d=google.com; s=arc-20160816; b=tPp2pxvFSv/nxuI6bl2rEpP2FrAgSbs9XBjSkICsc13b4RGIanu6KD2F7F0pYSJHVb Xntk/dQyZhU2Dr0W08lww0brTzRHMFsVxFyqUGdKOCo/u+79d4R5K2MlhHnJ9P0WczYi WflTgT7BeKTAE8HVdYnvDpw8jSrbGHuoxyIygmwSZSwxetHLSC23gz3tbc7hLyZTr4nU EXyyY0Qu21u7lYFHpZDF/UAPlXH7i2p7Nf0frgeTteB07sCy4rNmUUfaMg+FmgEt95qH sGRm3RQ8kffQ9eXNu+xmT7N6fVFaIXsSrx5On/VB8xf+nNuxJ4kH8v5VfV0PzIoSV2Jr A2bA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:references:message-id:subject:cc:to:from:date; bh=6FTmumvMrr5kXfuzO7x191XdH4XCX6/AQPCjoP9vcwc=; fh=rjkyRwZ5c4xyKZWMw6ZaUK2ZdH40TsdvEsUj4RtoUZc=; b=0YGWza3QPYTMmHRnxYKf4lkV9KDUbSUeizvscrUkL0c4nQXPhw3kwCiZhf0YfbH/qg Eou2afraoy3GD88MH3NorOvDZmOuLb8k1NVJccNzj+SYN7LNl9Fzd0TH9CGwEcQjuerR mpwFHoSJmOnt9ZNHt/oke6oBVykZJKjhHqPyFKPU26MmBByZW8HXl5rr+sXbLYROliYa 3epO7bbjFC7tEAc4PTuWVpyYeli5vfzMBg5QS/unq+N9iVe0wXKniP0OJEWwjy282Psy 4gkASJzM1lmP+8QGad7mzbcYAMxdVMQmQwVprdIv2xBD0W3s38vuC18s1MZlODjN5y8W geyw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=lst.de); spf=pass (google.com: domain of linux-kernel+bounces-97307-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-97307-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id y12-20020a50e60c000000b00567d5051f7csi2771026edm.421.2024.03.08.08.31.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Mar 2024 08:31:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-97307-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=lst.de); spf=pass (google.com: domain of linux-kernel+bounces-97307-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-97307-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id BBEEE1F239EA for ; Fri, 8 Mar 2024 16:31:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7A36933CC; Fri, 8 Mar 2024 16:31:08 +0000 (UTC) Received: from verein.lst.de (verein.lst.de [213.95.11.211]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F0A7B36D for ; Fri, 8 Mar 2024 16:31:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.95.11.211 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709915468; cv=none; b=q3rRZdHYZcx3EGOUkUXXYK9zARknv5qs2sHQm64UIACW9K4N114woDlkBfxtX9mboAw3a7nimCOYMfFmjbpctJyr8XnrEv+nXsCzOUnhQrTtfXqpeBD1PruorosO3sgNdgeiGh2qNK4CDJpTkEa8mGzPZpDOmstFy5DWn0dOOQI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709915468; c=relaxed/simple; bh=VDWDiLdmqr+T1PQP0/4dq0GNhOIGoR3DDqgHxEUcyy4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=UxXMMl1oDN7fSBAgtszAv+dSNhpmZScR3eum8ClYVNbYlphhSOLzgA3PKXZi+FEdC5kQFnq2nbmBFHhIoWRfSPZuzfKrKteLjE44sqg4WOpO5bKPcwSAejXRmFQJxA01xfV4gTZf3XUQfkMOod1UdLUvpflbfMhewqHTs6Qcnmg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=lst.de; spf=pass smtp.mailfrom=lst.de; arc=none smtp.client-ip=213.95.11.211 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=lst.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lst.de Received: by verein.lst.de (Postfix, from userid 2407) id 5A70A68BEB; Fri, 8 Mar 2024 17:31:01 +0100 (CET) Date: Fri, 8 Mar 2024 17:31:00 +0100 From: Christoph Hellwig To: =?utf-8?B?6K645pil5YWJ?= Cc: Christoph Hellwig , kbusch@kernel.org, axboe@kernel.dk, sagi@grimberg.me, linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] nvme: fix reconnection fail due to reserved tag allocation Message-ID: <20240308163100.GA17078@lst.de> References: <20240308015435.100968-1-brookxu.cn@gmail.com> <20240308144208.GA9194@lst.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) On Sat, Mar 09, 2024 at 12:29:27AM +0800, 许春光 wrote: > This works now, but I donot know whether > nvme_alloc_admin_tag_set()/nvme_alloc_io_tag_set() > will be suitable for all driver in future, such as driver for apple > device not use these two funcs > to init tagset (anyway it not use these two macros too), so maybe new > driver would use these > value in other position. nvme-apply should realy be converted to use the generic helpers, I just need some help from the maintainers. I'll ping them. But I'm fine with just taking this bug fix as-is and clean this up later.