Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp303519lqr; Wed, 5 Jun 2024 06:42:24 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUKGuwVF6CDdsBzfVVWp2Cvd/8j8fE9zA2Tuw85MAAH4PWSi8gId7uVI1zi9HyvDGqSoxLNidLhJaADaIp/fyFlaOThuTH5kbfEQNs6IA== X-Google-Smtp-Source: AGHT+IGchrNnv5ydrH6VqMTtqrHg91Bm8LiiZu2ZRD81hJY4u3SJAWz2QJKnhJJWkGIUeTFPCE0a X-Received: by 2002:a05:620a:4ce:b0:795:1cbd:c28d with SMTP id af79cd13be357-79523d32e27mr265637985a.25.1717594943908; Wed, 05 Jun 2024 06:42:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717594943; cv=pass; d=google.com; s=arc-20160816; b=OwsKz5lhwxsC1mqIDVhLBc2M5rCDETOBy8P/JDesKxRkQCI8XHaKY7nqdHHDtOvnGW BHJgtdtiJJ4IyIwUignsWHuwkL70lhQEYVJdVatKjmO5i9OY5+IROK+OvyXvQ1O15VmB gtY75C6MuJnanoAb+Goaw34OkSlzpKnrNXMWFSt8x+s2blriW9F3JrP2OEF0tvpz+A3m jfTXI6gUBg8hAc/XzH98QhHoC9kT+89Bch2gdnPR1x8H2YD3Y6ZutdhHHD8QUPlUkzmg ++47r3AyGTd62Gozvz5UwxwfMINVtSUcPxNTTKBt4HCmhr56YxCXJ288+KM80BZbXG1D 3CmA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=xq9gIboeIP0lLm6D7yyfMwZHyoZ/EmvE2lx3bVnUJH8=; fh=nYonYyeg+qpyrHsfV4Lzc1pM1ZvO1cco+gHUBhh2P9U=; b=zHyDCH94FrT1vK4CmPl/SFq84g7SHCgaFXsVr/q8qKvPPzkJgmAFUAzOQQ7RfkXDC6 OSDZzLMkZHmCqCEYUhykMUehGjS32WG6QY/4yjgGeBU0dt0hngemKyq5YK2Q51gFOD4O sBdsUlcGiRetCftvqnCysaqC0sbOOJLn+A+0h9PwnLbUf94xNA2Bd3a9ZgdhJMj3E6Tm AbNbCLP9NFBXxEjltJ8Yuv/cZ1KZHgGmsF9rmsr2ce38RSygOSjRaXYXEiefn3qK8Eqx U9StUqvrXfE9tPHXKsGJehSzzbgLtyx3l8jVy//7hW32qRz7ZwqmBev5QGWyJoZdIDkw yyiQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@layalina-io.20230601.gappssmtp.com header.s=20230601 header.b=w+Cb8xr0; arc=pass (i=1 spf=pass spfdomain=layalina.io dkim=pass dkdomain=layalina-io.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-202696-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202696-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id af79cd13be357-794f2f05135si1198394985a.66.2024.06.05.06.42.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 06:42:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-202696-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@layalina-io.20230601.gappssmtp.com header.s=20230601 header.b=w+Cb8xr0; arc=pass (i=1 spf=pass spfdomain=layalina.io dkim=pass dkdomain=layalina-io.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-202696-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202696-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 923DF1C2400F for ; Wed, 5 Jun 2024 13:42:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BA3C719581D; Wed, 5 Jun 2024 13:25:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=layalina-io.20230601.gappssmtp.com header.i=@layalina-io.20230601.gappssmtp.com header.b="w+Cb8xr0" Received: from mail-wr1-f41.google.com (mail-wr1-f41.google.com [209.85.221.41]) (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 5565C195803 for ; Wed, 5 Jun 2024 13:24:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717593899; cv=none; b=ozSlJosTuesS2QEIGOyuuHDy4TUMI3ksNgI384yFQRPdH0vHeVsQIp2K2ZnK+DdMKLywBMmLAY2F+Q0BzxCcrb/TX4Jq+MN769rQc1oRagXBWW+xYDRuGNVU4WAOTsYVPw1GL5s269Dnd9Rs9xg9OZ+wGyxTBOgIgoaT/TCTKfA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717593899; c=relaxed/simple; bh=IGgoHOYvpbTfxvF2N3hmgx/MFZ0LCAAfov2fRiE7iLc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=lK9rcGAkhzDg7gHBCYHQ+x2APf64ZOos9jJnrVRQ0X5LW71Hdb+GqV4LkT5BiT5VwjflQVBz7zDfrgOBBE15VIjUumMtKeeCossgbB38ng/JsXn294KiWLkRPouUhUsFhZE4ddD1qEUuHQ+V6ICMPIhJjMDy+e9jk1DePj8gp88= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=layalina.io; spf=pass smtp.mailfrom=layalina.io; dkim=pass (2048-bit key) header.d=layalina-io.20230601.gappssmtp.com header.i=@layalina-io.20230601.gappssmtp.com header.b=w+Cb8xr0; arc=none smtp.client-ip=209.85.221.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=layalina.io Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=layalina.io Received: by mail-wr1-f41.google.com with SMTP id ffacd0b85a97d-35dc0472b7eso5975385f8f.2 for ; Wed, 05 Jun 2024 06:24:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=layalina-io.20230601.gappssmtp.com; s=20230601; t=1717593897; x=1718198697; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=xq9gIboeIP0lLm6D7yyfMwZHyoZ/EmvE2lx3bVnUJH8=; b=w+Cb8xr0DLUkEiF25I2+ao+PrrD+CxzU7bXJkwia1qIQFJe5qePWIGI6knsgLGx925 1pg0KmdvOqp2JaKkyFjqZycakRMvp9Ui3ipK60zOysjUEP0EQWImgJ5LozNmHHnCEyLJ 7juMRmSymxXA8FpewX7CwIfEO/9XiHOPerghwCcHNyAIyH/F2oxlHOo+YgL5qez8bfB2 y9OXJwvmgeYtc2hT6SgLrd+cyRRbIy1gnIflaYFRPj4NWeuKDHekS4v761pmGrSq0Grf NIGb6c/d2bfjJdsg/aN2WU3XSbXXJPpYqj24r7pkJB17VHsJhF7n5Rzf92oSGpFePZ6U bisg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717593897; x=1718198697; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=xq9gIboeIP0lLm6D7yyfMwZHyoZ/EmvE2lx3bVnUJH8=; b=eJDY8kT0regZvcOI7spLhlUkq7ADkSVWrWtZD7Ecy/fX5xqwUcy3V0KweeUabRaVAe zudrUlnf6q8P9+XT6+akPha3gPsG3/lM0txLtaQy53yO3fVE3j+GgU1jFjCyCMCrbsiE HUTPxsrUvawQObwMFpITrEnCpVDH8EMCTYhmFV7R76dOUgScz2d0SQatW8EQC3Wozfl0 7dbl2W0NheUfXTg1CVm/AILIdTGSRxcA8grD1fHVnZq0Xv9k5+ZYN7qZDS5petGtheC7 sxelVEWl5PdnVUAAdItxSgLX+IoJ6z38inQ9C1W6BLMPyh8kVPVaGXajYjpOTbB6QTSv PCxg== X-Forwarded-Encrypted: i=1; AJvYcCXdaJiHATx0HoF4Qod1tTp58UgpXiEDESmM6CH9IDZJnMG3+pf3AbK5n66Fu6t5eKGCkwW1LgTn2Eq0Q3HUwMpLqJYVH9VeWoOBRIoV X-Gm-Message-State: AOJu0YxUUvurJdxDiuGovOiLNxIx5RkiPqcOaqhbsrdWJSNSPxXfZjCU Q0gD2EjePVynqxqr4wqxMew2mS6wcVY5G4uzWs3iiXCTIP8WVpztzv1vnJOUyjk= X-Received: by 2002:a05:6000:1f8c:b0:35e:5b61:23b8 with SMTP id ffacd0b85a97d-35e85feecf2mr2435818f8f.34.1717593896475; Wed, 05 Jun 2024 06:24:56 -0700 (PDT) Received: from airbuntu (host81-157-90-255.range81-157.btcentralplus.com. [81.157.90.255]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-35dd04c0f7esm14621490f8f.22.2024.06.05.06.24.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 06:24:56 -0700 (PDT) Date: Wed, 5 Jun 2024 14:24:54 +0100 From: Qais Yousef To: Sebastian Andrzej Siewior Cc: Daniel Bristot de Oliveira , Ingo Molnar , Peter Zijlstra , Juri Lelli , Steven Rostedt , Vincent Guittot , Thomas Gleixner , Alexander Viro , Christian Brauner , Andrew Morton , Jens Axboe , Metin Kaya , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, linux-mm@kvack.org, Phil Auld Subject: Re: [PATCH v5 1/2] sched/rt: Clean up usage of rt_task() Message-ID: <20240605132454.cjo4sjtybaeyeuze@airbuntu> References: <20240604144228.1356121-1-qyousef@layalina.io> <20240604144228.1356121-2-qyousef@layalina.io> <20240605093246.4h0kCR67@linutronix.de> 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=utf-8 Content-Disposition: inline In-Reply-To: <20240605093246.4h0kCR67@linutronix.de> On 06/05/24 11:32, Sebastian Andrzej Siewior wrote: > On 2024-06-04 17:57:46 [+0200], Daniel Bristot de Oliveira wrote: > > On 6/4/24 16:42, Qais Yousef wrote: > > > - (wakeup_rt && !dl_task(p) && !rt_task(p)) || > > > + (wakeup_rt && !realtime_task(p)) || > > > > I do not like bikeshedding, and no hard feelings... No hard feelings :-) > > > > But rt is a shortened version of realtime, and so it is making *it less* > > clear that we also have DL here. > > Can SCHED_DL be considered a real-time scheduling class as in opposite > to SCHED_BATCH for instance? Due to its requirements it fits for a real > time scheduling class, right? > And RT (as in real time) already includes SCHED_RR and SCHED_FIFO. Yeah I think the usage of realtime to cover both makes sense. I followed your precedence with task_is_realtime(). Anyway. If people really find this confusing, what would make sense is to split them and ask users to call rt_task() and dl_task() explicitly without this wrapper. I personally like it better with the wrapper. But happy to follow the crowd.