From mboxrd@z Thu Jan 1 00:00:00 1970 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 8F2691A073F for ; Sun, 26 Apr 2026 19:27:24 +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=1777231644; cv=none; b=hmna4+5mroQpyeE/e1Ph6mfwnaAOJlaoGLS/ZWE2CAodNfh3RVGeIRlivaWpmccs/FGrlnm8ZGSRUcwnyKxgU3eZU9A5pKW6GkoRAlqJcnFMPFwEr0sI/2eKNPj+HfoG0zCvyGFjj2X1K9WIJ31NEl0AHC8a9HkhLOltbkrsM8M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777231644; c=relaxed/simple; bh=niE+QT3OHXoGlKhIySp2ED9T+d5FRxEThvLFpMwQ+4w=; h=Date:From:To:Cc:Subject:Message-Id:In-Reply-To:References: Mime-Version:Content-Type; b=WTHRvysbtfKmWHdEAI6JE82hl1LVJyTGI2+22YiW9MfW/++tTKrpyws7fsSk+/UhZE/CfTaV8NYTiEuAyUmeSa5euFyUAgVi0M+gnKZfB9yhFtXpyZ98fJP0064sCyyXO98xYcJXNfZ4chEpwH0vA7YuwJKlAlvOyE/Pud9LM7I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=QKB4uzc9; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="QKB4uzc9" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1955CC2BCAF; Sun, 26 Apr 2026 19:27:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1777231644; bh=niE+QT3OHXoGlKhIySp2ED9T+d5FRxEThvLFpMwQ+4w=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=QKB4uzc9MtrFUWQ8g7aa8hLHWvI4RtY+n3/z07lbHMAS0aSHAznZLKgGx+360D9Dm jZjoJNTz68Cg8PeClmYgmpaqle1kmt0a8CFT/oXb1Gi5ivbO98gtgvjaKDvGAEEIfJ 8Dwkro9gwlig1lNnlliNhIZOL6sVViZeKmyTM+Yk= Date: Sun, 26 Apr 2026 12:27:23 -0700 From: Andrew Morton To: Oleg Nesterov Cc: linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] dequeue_synchronous_signal: kill the unnecessary still-pending check Message-Id: <20260426122723.d1b180bf62b03a94cfe5d2f7@linux-foundation.org> In-Reply-To: References: X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) 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-Transfer-Encoding: 7bit On Sun, 26 Apr 2026 18:21:29 +0200 Oleg Nesterov wrote: > The signals in SYNCHRONOUS_MASK are not real-time signals, so at most > one instance can be queued. Add a static_assert() to ensure. > > Remove the list_for_each_entry_continue() loop and simplify the code. AI review asked a thing: https://sashiko.dev/#/patchset/ae47bBSixfPpkQBm@redhat.com