From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796221479; b=IS4p6TmJQmkOPQtga8lItRv5Ife9/vlzpKKda6xm3dBCpszabQt0LQmVR9jRw7n3pNMp t6IpRAE0rdl3ArifcS2Hr9bX7lBdIMGpLFIgjPT+VIj41YNzGjDxqTsgVFfnjulTm6qQ3 ELnTd3PA8PiC17pisT4o5CqW699vzUF7vFZASGvCFYxohA2VK+lq6/ZhYQ5vteEdWtf4W ZOubRH09Rig/6xrWVlShMckP51jy4CQgkpw5n69K3oD1goLkM9av5CDZ9d+jTWO56vSYo ItKPniTNKQmJ04STXgLUxrHlw/Dt3YSJRrfF7GL+LaS+uyFdwNqcIEbBH7IpvdMjhuQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796221479; h=Received:DKIM-Signature:Subject:To:Cc:From:Date:Message-ID: MIME-Version:Content-Type:Content-Transfer-Encoding; bh=pt6ZztSrghkPgoIgTXpa4bCQF1xUnHy3vZo9oq9fEMk=; b=czi9HPnqR4qt0VoJgmYFYs2EpEn9fIY4Yy7MOsoJ8OHDh3pNPfZrvQ7jphqTOO/ks79h d4WbVT6Myv1mier+B+hwZY0CLV4eO5FvKnObOcVNvHwuqLHAEl5JCtnJsGhbkK0Jc6ABc zdJHd07w6jmCnWHCOkNKOtpCwxp710NThMplOz/MNASISvyOtis60C8lTms0c74Imfps6 oxl/2Rh80S0oo5rqbi50GMAfMih3Kko6QMqiAQ0/bq23R04m1MPxHHhbbtECfK9LA7P7R Q0/TKGvUfJgGz9yN+r35yGIFLgSGGlPt2sReDNtzz2VLgbAjuCgBxTrrJ9Zz+fjoSNA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=HadTBgX7; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2FB02606A31A for ; Wed, 2 Dec 2026 14:24:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=HadTBgX7 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 82D851F00896; Wed, 2 Dec 2026 14:24:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796221479; bh=pt6ZztSrghkPgoIgTXpa4bCQF1xUnHy3vZo9oq9fEMk=; h=Subject:To:Cc:From:Date; b=HadTBgX7L1eKruaxBeyOOpvF0R3wDfRzY8Dsv4QKBgfYOQPzsMA0s4jJ+ILYJdXOw 9vKa+I1x8PCGU8BdzOSUvvfNoPS08sBEEDq8C4PiSVRvNQKX9CI+oR/RBUFO2WwBqd tTScYv8BIZOsEz1WJFEtR28kI+yiXFJZw69W95jU= Subject: FAILED: patch "[PATCH] nvmet: use GFP_KERNEL for PR allocations" failed to apply to 6.18-stable tree To: kanie@linux.alibaba.com,hare@kernel.org,hch@lst.de,kbusch@kernel.org,nilay@linux.ibm.com Cc: From: Date: Wed, 02 Dec 2026 14:52:31 +0100 Message-ID: <2026120231-footprint-eligible-a023@gregkh> X-Mailing-List: stable@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list 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.18-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.18.y git checkout FETCH_HEAD git cherry-pick -x 976311c5594a7a26047891f087ad59a804e02baa # git commit -s git send-email --to '' --in-reply-to '2026120231-footprint-eligible-a023@gregkh' --subject-prefix 'PATCH 6.18.y' 'HEAD^..' Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From 976311c5594a7a26047891f087ad59a804e02baa Mon Sep 17 00:00:00 2001 From: Guixin Liu Date: Mon, 9 Nov 2026 10:26:46 +0800 Subject: [PATCH] nvmet: use GFP_KERNEL for PR allocations nvmet_pr_update_reg_attr() and nvmet_pr_alloc_and_insert_pc_ref() allocate with GFP_ATOMIC, but both run in sleepable context: the PR command handlers execute from the transport workqueues and take the pr_sem semaphore, and the pc_ref allocation is reached from the connect and configfs paths. The latter function even passes GFP_KERNEL to the percpu_ref_init() in the same scope, so the GFP_ATOMIC only raises the failure rate for no reason. Switch both allocations to GFP_KERNEL. Fixes: 5a47c2080a73 ("nvmet: support reservation feature") Cc: stable@vger.kernel.org Reviewed-by: Hannes Reinecke Reviewed-by: Christoph Hellwig Reviewed-by: Nilay Shroff Signed-off-by: Guixin Liu Signed-off-by: Keith Busch diff --git a/drivers/nvme/target/pr.c b/drivers/nvme/target/pr.c index b860cbe192cd..8c818f24815b 100644 --- a/drivers/nvme/target/pr.c +++ b/drivers/nvme/target/pr.c @@ -341,7 +341,7 @@ static u16 nvmet_pr_update_reg_attr(struct nvmet_pr *pr, return NVME_SC_SUCCESS; } - new = kmalloc_obj(*new, GFP_ATOMIC); + new = kmalloc_obj(*new, GFP_KERNEL); if (!new) return NVME_SC_INTERNAL; @@ -1046,7 +1046,7 @@ static int nvmet_pr_alloc_and_insert_pc_ref(struct nvmet_ns *ns, struct nvmet_pr_per_ctrl_ref *pc_ref; int ret; - pc_ref = kmalloc_obj(*pc_ref, GFP_ATOMIC); + pc_ref = kmalloc_obj(*pc_ref, GFP_KERNEL); if (!pc_ref) return -ENOMEM;