Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 494EF4A2A5F for ; Mon, 5 Oct 2026 14:31:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791210688; cv=none; b=L7dvA1WlPFV7oPmoSR+t2pCzekBHyErZp9JjHj9xUNj9Ue+5WhKnQBG/5JSZsjP0UBWOcC8e6wByIUuDvJr1ENAXbLbjsE7O2r3+hC+bayIxn725NyJrxz4FteKWMDrsKeusfNNteLUYamIGOjYQ3QawgIwgUVNzlgsSu1LFd7E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791210688; c=relaxed/simple; bh=Sq9dGZ5rvyrC1fj9gPr3QTCFvK1cubvmp0n+AtglKJI=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=Xg9jDDPJr9OCuocWZy7BPt6r+N0OoPyHGfIr8qzAoxHpUrD8qucDkLBEd/yO03PYGacF6ipt9e9aud1KlVtcfsmfvSneI5I+eGZaV9d13Mvae5KsljNlx6O5d2AoOpn0zVAplpCaxvOKn+ebQAFkLPScJ7HhS8cq8A7n5dpVjpA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=swwp2v4B; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="swwp2v4B" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DD7A11F00898; Mon, 5 Oct 2026 14:31:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1791210676; bh=0A8mSHfyQ+0HxzWYoRr+RYBOq6pjbzA9nuafMFdHtJY=; h=Subject:To:Cc:From:Date; b=swwp2v4BZfwnl1WLbXJzGoLzZF/wk/znGZ4N4P4pwC0lnXzHU098UwXkDIQcmfOoh BuhTmmP+h/jaSmvBdThomDqQJIkqLETX9R8j+X1tIceOtADFDAxvfnmS8d/uuNr2IH fg5HILe9rsEkBhOp5Up7838Wcmc/zNFL9wQ01LhA= Subject: FAILED: patch "[PATCH] nvme-multipath: set BLK_FEAT_ZONED only after the zone info" failed to apply to 6.12-stable tree To: kanie@linux.alibaba.com,kbusch@kernel.org Cc: From: Date: Mon, 05 Oct 2026 16:31:05 +0200 Message-ID: <2026100505-fretted-bungee-8826@gregkh> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit The patch below does not apply to the 6.12-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . To reproduce the conflict and resubmit, you may use the following commands: git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.12.y git checkout FETCH_HEAD git cherry-pick -x 4a5e49ba0abb8b4328d6318c9aef0c0121f95507 # git commit -s git send-email --to '' --in-reply-to '2026100505-fretted-bungee-8826@gregkh' --subject-prefix 'PATCH 6.12.y' 'HEAD^..' Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ From 4a5e49ba0abb8b4328d6318c9aef0c0121f95507 Mon Sep 17 00:00:00 2001 From: Guixin Liu Date: Mon, 14 Sep 2026 18:57:13 +0800 Subject: [PATCH] nvme-multipath: set BLK_FEAT_ZONED only after the zone info is known The namespace head is marked zoned at allocation time based only on the command set identifier. If the zone info query reports a zero zone size, the path namespace is registered without zoned limits while the head still advertises the zoned capability with a zone size of zero, and reporting zones or writing to the head then shifts by ilog2(0). Drop the zoned feature from the head allocation and let the head limits refresh stack it in from the path namespace instead. Fixes: 28982ad73d6a ("nvme: set BLK_FEAT_ZONED for ZNS multipath disks") Fixes: 3838e80fcfb3 ("nvme: skip the zoned limits update if the zone info query failed") Cc: stable@vger.kernel.org Signed-off-by: Guixin Liu Signed-off-by: Keith Busch diff --git a/drivers/nvme/host/multipath.c b/drivers/nvme/host/multipath.c index 7db6850f98d4..99ecc73393e5 100644 --- a/drivers/nvme/host/multipath.c +++ b/drivers/nvme/host/multipath.c @@ -761,8 +761,6 @@ int nvme_mpath_alloc_disk(struct nvme_ctrl *ctrl, struct nvme_ns_head *head) lim.dma_alignment = 3; lim.features |= BLK_FEAT_IO_STAT | BLK_FEAT_NOWAIT | BLK_FEAT_POLL | BLK_FEAT_ATOMIC_WRITES | BLK_FEAT_PCI_P2PDMA; - if (head->ids.csi == NVME_CSI_ZNS) - lim.features |= BLK_FEAT_ZONED; head->disk = blk_alloc_disk(&lim, ctrl->numa_node); if (IS_ERR(head->disk))