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=1796416392; b=Gt7rkNMxqE16NNKE9Js+gQdNRSpVN7pepkeR/yUI/UxvWKkjDwY4N2fFzYx3rR3yGZcn Ep1DTtRKV6SsA1HSW1SQhUxbwBN5lZSGhRSCBGdojHdb7/YXUg9iDbKVy2V7XOqHsopxd 1+wAn9w/d27gFeDC8ugAu8qW5GdcYSyQchcTonXhtNuFR1w9fQMMyJUaY2MVqUxKGsJle yjOBKoWJ26B59YB7y49RRjvBM8NNs6DRApCVu66gr/o6WHs7AuX3JUvM9meO/SenELaP6 Z+xH6edeyjf2Bqy/UE0CHoW3v9ft3SMV2G3iOK5RAqg5VbQMCNACLKUmkMIj5KrV5xA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796416392; h=Received:DKIM-Signature:Date:To:From:In-Reply-To:References:Subject: Message-Id; bh=+zC77UlIwJhfT2CE7XXFsxV9moPKP1QfrRhwEFnto2w=; b=xYBr7d3mkUgK0pyQ3HWwO/BXRBcj7VEygxK7w2vz0Altq8Q/Zdh4Sq0Cbp2EdE7EhQB7 Hy87KPGOe0PutDN7DzQQLmbmWMuYY/nJ1pEYruo1TR4f0VdMd/eoNWdW5dLFItXrnpq4D hEyN5FVOSPOT8xnVvjHVcwhRmek56ZBBtUb4odeyvsYZT1rRbdz3kcqcLcQl9MjyVz2Lv w9RDVuSGExJ3iIJrhbPLOPCVq9XGe6bQChXyP9tGQapd7YG/HP1rgUsf0Orrt6EpalGfC lHzyI/0erEoGkj1ThO6YnIYXHKm8SJkn+gVeTnj7Tjh/k9hu+w8QK5g9jpm0i4FRHRQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linux-foundation.org header.i=@linux-foundation.org header.a=rsa-sha256 header.s=korg header.b=cUDoFR9z; 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 0BFDA606A322 for ; Fri, 4 Dec 2026 20:33:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.a=rsa-sha256 header.s=korg header.b=cUDoFR9z Received: by smtp.kernel.org (Postfix) with ESMTPSA id 88C8A1F00936; Fri, 4 Dec 2026 20:33:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=korg; t=1796416391; bh=+zC77UlIwJhfT2CE7XXFsxV9moPKP1QfrRhwEFnto2w=; h=Date:To:From:In-Reply-To:References:Subject; b=cUDoFR9z045V6AuQNjL9oqmPP/XTZ69dm55v/CDr8YBZThbqsuRvzcrqx3grC/2Vx SK2RHPPDPH2c0Q5VkzEzuOWHaeOS7iM+uAThfiyD6FJSMs97Zfvc+eNJshflch9/OV ilWgcCpS9F0ypTANhA5mq0uZmAdhm+AIwF0ivOt4= Date: Fri, 04 Dec 2026 12:33:11 -0800 To: mm-commits@vger.kernel.org,jun930436@gmail.com,akpm@linux-foundation.org From: Andrew Morton In-Reply-To: <20261204174342.78390-1-jun930436@gmail.com> References: <20261204174342.78390-1-jun930436@gmail.com> Subject: + lib-list_sort-drop-stale-reference-to-plug_ctx_cmp.patch added to mm-nonmm-unstable branch Message-Id: <20261204203311.88C8A1F00936@smtp.kernel.org> X-Mailing-List: mm-commits@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list The patch titled Subject: lib/list_sort: drop stale reference to plug_ctx_cmp() has been added to the -mm mm-nonmm-unstable branch. Its filename is lib-list_sort-drop-stale-reference-to-plug_ctx_cmp.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/lib-list_sort-drop-stale-reference-to-plug_ctx_cmp.patch This patch will later appear in the mm-nonmm-unstable branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next via various branches at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm and is updated there most days ------------------------------------------------------ From: Jyun-An Chen Subject: lib/list_sort: drop stale reference to plug_ctx_cmp() Date: Sat, 5 Dec 2026 01:43:42 +0800 The kernel-doc of list_sort() names plug_ctx_cmp() in block/blk-mq.c as an example of a comparison function that returns a boolean. That function had already been renamed to plug_rq_cmp() by commit 3110fc79606f ("blk-mq: improve plug list sorting") when the comment was added in commit 043b3f7b6388 ("lib/list_sort: simplify and remove MAX_LIST_LENGTH_BITS"), and plug_rq_cmp() was removed along with plug list sorting in commit df87eb0fce8f ("block: get rid of plug list sorting"). The multi-word example that follows already shows the boolean style, so drop the reference instead of pointing at another caller. Link: https://patch.msgid.link/20261204174342.78390-1-jun930436@gmail.com Signed-off-by: Jyun-An Chen Signed-off-by: Andrew Morton lib/list_sort.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) --- a/lib/list_sort.c~lib-list_sort-drop-stale-reference-to-plug_ctx_cmp +++ a/lib/list_sort.c @@ -108,8 +108,7 @@ static void merge_final(void *priv, list * This is compatible with two styles of @cmp function: * - The traditional style which returns <0 / =0 / >0, or * - Returning a boolean 0/1. - * The latter offers a chance to save a few cycles in the comparison - * (which is used by e.g. plug_ctx_cmp() in block/blk-mq.c). + * The latter offers a chance to save a few cycles in the comparison. * * A good way to write a multi-word comparison is:: * _ Patches currently in -mm which might be from jun930436@gmail.com are lib-list_sort-drop-stale-reference-to-plug_ctx_cmp.patch