From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-171.mta1.migadu.com (out-171.mta1.migadu.com [95.215.58.171]) (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 B05203914EE for ; Wed, 1 Apr 2026 15:21:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775056914; cv=none; b=G+caVR/YYfF40K4XarR5D1DNm1SUfu+5K8fQcrKcWK1CTFSLJiaiCKbKY4Yqt7Eo3J5CGa/GWQBkvUiYiScuJPM29mFbyJlBvf+uPpMLBa4ZwUayT6lbwh2MbGOOTlO6+9RDlqTUTWlQf/0GmJa2JxPRJN26DAEt3Y/xlrWdmCM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775056914; c=relaxed/simple; bh=QEEPAqMtgSarvJtV2b/uk46hczbiNSgfLmsir6owuKM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=KLRQi/RzZ2t7ASBW1lM+gU+i/vU4+LYwoCxbx0AYM/wu6JxyQKqLp/EcRLPOydMRh+qPQbNAcPCcZsWtEua+guqiHOT4hVDoDgaQyASG7VdSRA7WtY7MDSgkMA9HqUq1RNLwlF5/igYUL5V7YntDVc2CPDCXjMGVxQpxsIceWZg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=gXNvKLK2; arc=none smtp.client-ip=95.215.58.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="gXNvKLK2" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1775056910; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=O2NazChgI1f13K835KWmBtqStea8/Zfubs6hFELZVvk=; b=gXNvKLK2YQrI3vF1KbFu6WILpFZlOL0WImhK9jzi/KI66ZbtiYexQr8vyMY1iY/s6fylmi cWlPnSyiosl3MF3C645EPict8tbvCwOUpelI8khr7TUs/uC/4Q9QPIgOHkOwtkIBVnC4z6 2nV15GBRSgg2HP4boqY9lb5N/0lGvBM= From: Thorsten Blum To: Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Valentin Schneider , K Prateek Nayak Cc: Thorsten Blum , linux-kernel@vger.kernel.org Subject: [PATCH 2/2] sched: update task_struct->comm comment Date: Wed, 1 Apr 2026 17:20:41 +0200 Message-ID: <20260401152039.724811-4-thorsten.blum@linux.dev> In-Reply-To: <20260401152039.724811-3-thorsten.blum@linux.dev> References: <20260401152039.724811-3-thorsten.blum@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1053; i=thorsten.blum@linux.dev; h=from:subject; bh=QEEPAqMtgSarvJtV2b/uk46hczbiNSgfLmsir6owuKM=; b=owGbwMvMwCUWt7pQ4caZUj3G02pJDJlnzS9yaXtcfB166tyrFcFnLIz7xDlUXpzIiFLeyLXt6 pXTD7c5dJSyMIhxMciKKbI8mPVjhm9pTeUmk4idMHNYmUCGMHBxCsBEttYx/PecxSvYan5i/WZH bvNC3dJlfaLW+kqn155Y6p03ZcqcBdkMv9k1psx2z06s1pnZzH3JuVLFIuj8v4B1szUjgzffZFR 4ywQA X-Developer-Key: i=thorsten.blum@linux.dev; a=openpgp; fpr=1D60735E8AEF3BE473B69D84733678FD8DFEEAD4 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT Since commit 3a3f61ce5e0b ("exec: Make sure task->comm is always NUL-terminated"), __set_task_comm() is unlocked and no longer uses strscpy_pad() - update the stale comment accordingly. Signed-off-by: Thorsten Blum --- include/linux/sched.h | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/include/linux/sched.h b/include/linux/sched.h index 5a5d3dbc9cdf..f510b465db04 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -1159,12 +1159,9 @@ struct task_struct { /* * executable name, excluding path. * - * - normally initialized begin_new_exec() - * - set it with set_task_comm() - * - strscpy_pad() to ensure it is always NUL-terminated and - * zero-padded - * - task_lock() to ensure the operation is atomic and the name is - * fully updated. + * - normally initialized by begin_new_exec() + * - set it with set_task_comm() to ensure it is always + * NUL-terminated and zero-padded */ char comm[TASK_COMM_LEN];