From mboxrd@z Thu Jan 1 00:00:00 1970 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 9A5A31FDE37 for ; Thu, 6 Mar 2025 15:17:00 +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=1741274223; cv=none; b=hvJ1QX+cFyvdu5b4iKgKs9rYw8gPZ1xvpACJn+tZEAtqrI/pxMtPWJuJfB77xxxmNYUeTB0D14GIfgPTJCsvQoQJf2SQbOjfMJCwzq1iljpO0fEEoVgP9i8KA53AnHfAd+6XoHeSn9+o2Z8IZiYMwz6//HQHPP+NXWWAJjS1WX0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741274223; c=relaxed/simple; bh=/IKJ4cvE8EfwkcDpOfePKAOZq4NxpraupgUJ0cu/nD0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=OBbr7yRqMKpzoIDzfv+teu0d+/LnuJLFdwDnnRIlCXYQM5J1iGu8kuCD4uYXUV+nVXaB8dhra6JWwO9eVOPga7s/MT6oswopFg/crdung90sRORG7op2ovW53CQJAhTQkgy2VpM+4J38WGzdMUrFF4h+ggYQ57MWR+MED5xE+Gg= 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 A15AC68C4E; Thu, 6 Mar 2025 16:16:54 +0100 (CET) Date: Thu, 6 Mar 2025 16:16:54 +0100 From: Christoph Hellwig To: Keith Busch Cc: Christoph Hellwig , Hannes Reinecke , Sagi Grimberg , Nilay Shroff , John Meneghini , bmarzins@redhat.com, Bryan Gurney , linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org, Marco Patalano , axboe@kernel.dk Subject: Re: [PATCH] nvme: remove multipath module parameter Message-ID: <20250306151654.GA22810@lst.de> References: <91ae613a-7b56-4ca0-b91c-6bc1eee798b8@suse.de> <20250305141554.GA18065@lst.de> <20250305235119.GB896@lst.de> <20250306000348.GA1233@lst.de> <1ffebf60-5672-4cd0-bb5a-934376c16694@suse.de> <20250306141837.GA21353@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=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) On Thu, Mar 06, 2025 at 08:01:19AM -0700, Keith Busch wrote: > > If the device is indeed entirely single ported and Samsung can confirm > > the setting is incorret and not easily fixable by a firmware update > > we can quirk it. > > It's not one vendor or device. I've not seen in in the wild so it can't be that common. > Or consider a true multiport PCIe where each port connects to a > different host. Each host sees a single port so they're not using > multipath capabilities, and the admin wants the MD behavior that removes > a disk on hot plug. Or even if one host sees both paths of a multiport > PCIe, they still might want that hot plug behavior. The module parameter > makes that possible, so some equivalent should be available before > removing it. A module-wide parameter is absolutely the wrong way to configure it. You'd ad best want it per-controller or even per-namespace. One tradeoff would be to disable the multipath code for private namespaces, although that would cause problems when rescanning changes the flag.