Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp600897lqp; Wed, 12 Jun 2024 10:24:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWU0nm2sW9uSlOnM7Y6WoC8Laz6Lv4ovXd0uNNvN6RkCckAUEeOZ/XxVh3x7je4wRtpw3W/lcOF0Oqn8MWEGr69Tvre/FumQNz1UJgOoQ== X-Google-Smtp-Source: AGHT+IF+Q1zeBZgT8Q5LAtXsrz/yQtvj2mCAZPEUlYOnZ60hnvkOK+TgcICJz0iS2tKWHS2bxXti X-Received: by 2002:ad4:4207:0:b0:6b2:9d43:f060 with SMTP id 6a1803df08f44-6b29d43f2dcmr14788446d6.33.1718213065550; Wed, 12 Jun 2024 10:24:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718213065; cv=pass; d=google.com; s=arc-20160816; b=Lq6uHjjLdYr3TUQV0Sj4sowuJACCc4ejZxyurds453GDQ7CK+RQ8souQxc1QNwoG7m WbNVCa7AgmHL4sl7N2WEnjJbhbCCuO+cYdNM4hYiuSxekIKftG1EupI9hHPRzKg/fPHM qY20RXu0glqBFTLVQzsZ1U+AiZnzBQVa3IOMp/ZoFkK6NOcFKkncovz04uOTdVSBp9wo jZTJJXAlpJQI/GmibgGlFUCgXPiOEOc871e71BfEwCHoChKN1hb8QYWXLppXVOO1qYLc Jah0tS5vxh6xYE2KwsIAG7oX78YcwWFIVDcDTdAa+rP9Tn51slSIe49YxuCvl9La94ol UyHw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=3xJiwLEO6A9rXC/Tw4pBSqTyYDPQuShRMUBvTF2XPys=; fh=kHyXnUZs/YASKvUsm2Vep/6T7G9adsRcXR+PAGLQNms=; b=CsVB/iMFM3j0+Tiu7SWfHtBQJXksWTb+R0D3tEnmAR98MTKwgMJVnMwx+UiqHG+DaK fPiJBZWReSxOdlW6OE5u3Lr03VfY4COR+YMuvD0E/dRaKuA7bWDuonYN64QGONzay2Oc 409sPV+WcTfFy4ouUkphiWfpWQwgwGzhsA/F7Dnqrep5vmWPM6x3vg80B6s8zw6Cr+0i CYCZnFoSyGl1lFdtDbfk8pdIcGK9l/y+jWcW+GrD9Oz4hDanUso01zT1uRC1pdP0p2Iz kym3GNqQF5o2ncx0Idy6i2+7E30eG3tdJ38lYW0xAJi2L9WmkM7uenXXP+DwYQSGAv5H mGKg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=E0Q06Ogc; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-211999-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211999-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 6a1803df08f44-6b04f969965si125551836d6.191.2024.06.12.10.24.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 10:24:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-211999-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=E0Q06Ogc; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-211999-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211999-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 3E4501C214F7 for ; Wed, 12 Jun 2024 17:24:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CF9F31822C9; Wed, 12 Jun 2024 17:24:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="E0Q06Ogc" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 047233209; Wed, 12 Jun 2024 17:24:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718213055; cv=none; b=ANfIcP6cQzcLFZCQzAZ8TNSfZh3d9UIqTRr2oIgTxdqGUCC31PPJ7+Qs+w1C/e3Veguw1V6pp75XjptOuLYYV3/IxrlfzCpQW5w5oaRG+d7Tq+9arYkl5HvdZgqFeYxyH1s34/a0uvpdGvqcsdkJ8mc0YVP85qMe0Qk0OHupPsk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718213055; c=relaxed/simple; bh=VEP6/pbsoq4tingsui+FiHXJGFOhZC3JaHgSPFWU6mo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=AoX3EN8ug9Qjq4arXLSaDk4YSez8yG6EFUf8f2SCn85Fr0YkIsw8RI/Fqz1usgZw7VL4HNN9KC1W/OKcfEioXGWUnhb4MftLMyuAawfduHdTv+RVeIzBpSgT6Ob9nNgVNqZo1RJ3epkHIuJv9lfDFB833Pf+/dFd558znhs0iw0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=E0Q06Ogc; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id CF4A2C116B1; Wed, 12 Jun 2024 17:24:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718213054; bh=VEP6/pbsoq4tingsui+FiHXJGFOhZC3JaHgSPFWU6mo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=E0Q06Ogck67T3YyvvwKZ6YCLKjIXPGwvgIyl5znav4NfousuzZYo71KBpvEwS1p56 A6rxMMP4xTnaag8d66Mh3iNk41YULjPod4ac3blokxLKvroAnWen2tfzXHEb96o5dR nEhK1WQev1bKH8ndeUmfwYukd9xDZqQd9fB5HscNC8ng3f70y5Ddq4EXh4AN8ZjwCG kOpaNMEcNPmV3FPABKbu1UvbhzKXgAmxdoqtaV2jSopaSZ8tIxBbzSuaHAbxcoQBlM ABr6jorhzTPCnmqTiq6wWIXg67BaS5sNP7QiQ1p0JVq2dXAotCldXBan3v4dNyhWfz xGnF+AOXKWkuw== Date: Wed, 12 Jun 2024 11:24:11 -0600 From: Keith Busch To: Chaitanya Kulkarni Cc: Keith Busch , "linux-nvme@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "linux-kselftest@vger.kernel.org" , "hch@lst.de" , "sagi@grimberg.me" , "paulmck@kernel.org" , "davidgow@google.com" , "akpm@linux-foundation.org" , "venkat88@linux.vnet.ibm.com" Subject: Re: [PATCH 2/2] nvme: fix namespace removal list Message-ID: References: <20240612155135.3060667-1-kbusch@meta.com> <20240612155135.3060667-2-kbusch@meta.com> <5cb2c809-bfa3-4389-8f60-ea0edf742724@nvidia.com> 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=us-ascii Content-Disposition: inline In-Reply-To: <5cb2c809-bfa3-4389-8f60-ea0edf742724@nvidia.com> On Wed, Jun 12, 2024 at 05:20:48PM +0000, Chaitanya Kulkarni wrote: > On 6/12/24 08:51, Keith Busch wrote: > > From: Keith Busch > > > > This function wants to move a subset of a list from an element to the > > end to another list, so do that with the new list_cut helper instead of > > using the wrong list splice. > > > > Fixes: be647e2c76b27f4 ("nvme: use srcu for iterating namespace list") > > Reported-by: Venkat Rao Bagalkote > > Tested-by: Venkat Rao Bagalkote > > Signed-off-by: Keith Busch > > not a blocker, but it'd be really useful if we can get a blktests for this, > I've asked OP to provide steps at least ... Recreate the original report: detach the highest namespace id from your controller. Let's say it's nsid 10, and let's assume your ctrlid is 0: # nvme detach-ns /dev/nvme0 -c 0 -n 10 blktests supposedly has something that detaches namespaces through the nvmet module, but it doesn't seem to be catching anything.