From nobody Mon Jun 15 05:17:01 2026 Received: from mail-wr1-f74.google.com (mail-wr1-f74.google.com [209.85.221.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EC6EA27FD75 for ; Wed, 8 Apr 2026 09:19:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.74 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775639987; cv=none; b=b2OsM/Z0NG9UdxKnRK4OIJT9YBykTNbg/qmA4MsmtI9r/xS9+BzlaZ8gF0x7/0VBUYLgRNoRJYA0P5akl1al6yYSbFJ4lxrKOEAXnlY2eLohHhRlzIjGC4sS7+EibD6yeKnlIXmMNA8JTSVqYlY5j+G/GfBgwvs3pAAnakZfnuk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775639987; c=relaxed/simple; bh=WzEsEsduf2sQc3dKAdRwaP5aVyz8wNAQWwECTdXiTaI=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=Sa+nbDDqsPK+OysKx3GzcFaWw5xH6zoj4FVqgBUcb86g31kXD1Mj7qk2Sw2StcvDQX44NK7OIcQ94jqPNYaY2Bxi7ka7wPBX9+qjmVJ0j3523eN6+Ipt9/L+DTsNFxtx1T7Xn6ZkaIYAKboBhP7bWj6FQe5f7pKOrTofuhhpElI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--jpiecuch.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=c6gL8KnT; arc=none smtp.client-ip=209.85.221.74 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--jpiecuch.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="c6gL8KnT" Received: by mail-wr1-f74.google.com with SMTP id ffacd0b85a97d-43d121c4271so4566016f8f.3 for ; Wed, 08 Apr 2026 02:19:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1775639981; x=1776244781; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=W6wudDjPf2Vj8w3dFyq1e1+5psQ2M5yoeUXXKSlAbWo=; b=c6gL8KnTm2Xdew5q5u9yj2k0mUziojdLEKJLBM1whPdCD+uC6caJaDDNvyehxuxUpt SGntGtQZBfdmA/izDTB+GEZv4Il3jcxjh/PrfOTN452z6ErSKnKg3+HiXiB7t0hpHfXI XW7Q8HytLuXyu35sa79MIe9oiQ3EsEDO3YcZu0UpU9aRrFPGwGRWUwFlk6iv0qKg+Q5U U4Kvn5z4hz+XnmT/tb8vQ8XCYm4i8t4f12xZ4O2X3k1byeM37PAWEQZiC3ienvCZJa4m 81d3VOBt+Ki6ciGZ8Z9QKYd5aU0YG25X5Grih9k3xx7HgWUh9CB9jjVXigIH+90Vyt1Y lJkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775639981; x=1776244781; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=W6wudDjPf2Vj8w3dFyq1e1+5psQ2M5yoeUXXKSlAbWo=; b=o5sYTZc28uTHnHQox7adrx/nesbuehi+dnjdNoxFmGSTm5At8ZzChS2MCWN1DuapEO ZnXFck3YAZpd5gxq9/O0XAYon6vvHiAnYoawR7JYTI57JnIi0NfxqkbTJrLFEq23bBAw ksCf0MuBC7hay8hAtJ1o6Oz8l7TCoO/LFm2anP9ZGBeuOQ63OZETzasAaqqWg36D8qtZ 1dH/U6Z/+TguHnhAawODXwG4CaA+17VQTYX/TDeHvA3G2uc3Wp4oA9XQj9H0aNXCMNkt iwf8YlOABt5GYDUfHm2uV2KvQgd24/zKphiKtgxKBcqj0sGnjqcOEE6MgBowkHYodX2N CgVw== X-Forwarded-Encrypted: i=1; AJvYcCXKVlUZ9DX14z5Dkn8hBHAZUUf6Wag8zhdvyLI337VQHUp+VQ1guSCXLi//FmxZ3lEuVMOL+yhnHB97C88=@vger.kernel.org X-Gm-Message-State: AOJu0YyyqEgstY9vw8nawbPx2HL+DXhVi2zQeODPJ6/abLVXAPLdCprE JeFUx5BQpwYxxIYTSAmheqEhA5rQZtp+HdE2mxwbqYnDdvbuzhWu61XYqnvbTrY1G8Tacta5GpI YPadt0OE8dfRffw== X-Received: from wmbem21.prod.google.com ([2002:a05:600c:8215:b0:486:ff40:e138]) (user=jpiecuch job=prod-delivery.src-stubby-dispatcher) by 2002:a05:600c:894:b0:488:aa3d:fab1 with SMTP id 5b1f17b1804b1-488aa3dfc7dmr106454015e9.17.1775639981413; Wed, 08 Apr 2026 02:19:41 -0700 (PDT) Date: Wed, 8 Apr 2026 09:18:21 +0000 In-Reply-To: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: X-Mailer: git-send-email 2.53.0.1213.gd9a14994de-goog Message-ID: <20260408091821.91063-1-jpiecuch@google.com> Subject: [PATCH sched_ext/for-7.1] sched_ext: Documentation: Add missing calls to quiescent(), runnable() From: Kuba Piecuch To: Tejun Heo , Andrea Righi Cc: David Vernet , Changwoo Min , Christian Loehle , Emil Tsalapatis , sched-ext@lists.linux.dev, linux-kernel@vger.kernel.org, Kuba Piecuch Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" When a queued task has one of its scheduling properties changed (e.g. nice, affinity), it goes through dequeue() -> quiescent() -> (property change callback, e.g. ops.set_weight()) -> runnable() -> enqueue(). The existing documentation only mentions dequeue() and enqueue() on that path, so add the missing callbacks. Fixes: a4f61f0a1afd ("sched_ext: Documentation: Add ops.dequeue() to task l= ifecycle") Signed-off-by: Kuba Piecuch --- Documentation/scheduler/sched-ext.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Documentation/scheduler/sched-ext.rst b/Documentation/schedule= r/sched-ext.rst index ec594ae8086de..b5c70f4cfc352 100644 --- a/Documentation/scheduler/sched-ext.rst +++ b/Documentation/scheduler/sched-ext.rst @@ -429,6 +429,11 @@ by a sched_ext scheduler: /* Task property change (i.e., affinity, nice, etc.)? */ if (sched_change(task)) { ops.dequeue(); /* Exiting BPF scheduler custody */ + ops.quiescent(); + + /* Property change callback, e.g. ops.set_weight() */ + + ops.runnable(); continue; } } --=20 2.53.0.1213.gd9a14994de-goog