Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp2303142rdb; Mon, 9 Oct 2023 22:35:19 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF80WOIT5KRdMYafh4MRWkntI0VYi+fPyumZbdD3Fwkj20yVCVSk5lvDWgm786oU2cbcJpu X-Received: by 2002:a05:6358:5281:b0:143:8984:50c2 with SMTP id g1-20020a056358528100b00143898450c2mr15557177rwa.32.1696916118714; Mon, 09 Oct 2023 22:35:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696916118; cv=none; d=google.com; s=arc-20160816; b=D8m7FipvZ9llpO6pi/VCHOc1m+rSlKZyUl0dtdcTjdiAGGZliCBB+/z2tNoOIRSc9k qpC9dI8toboWIoujiVCuGh6SJkka9rpqvh/k2iDBkDGGgbJuyjt3oA0yQhG1xyW5Rcn+ JbSbsp4cJYHygFdVtPJqgu56IHAl1TLiq6IWUsHSW25X6I/z24XZLMUMZiFx5tSLNfz6 xlPkKCta6pMXw4zGwQ9VDIT+QKZNlM7B+9LIG4yG/s0XeYCbKCnUtxuLNNQY8o6/D2Hn U4CRkbyL9+4ld2szWVahWaU46OImgBp7M0Dy3B4aXv6PEPJg5/ycGTESIYsmQ5FiFk8+ +bxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=of3RE6QBF1Jz2L+QOoIOgtERkMPSFMmd7Q1awSev4MA=; fh=cfSfhHiWDabg6IjUATi/e1xQsXjlXMLhHRZNIJWUaXw=; b=ODojd/+aO9lx+l7QAHPpKZV9+PKU+xMRDKJ8Uo1AjxwVWakLRHKp0T4HVmAhOfFGjI YrYe/cHmJ5o4aFzvUTfBv6KKK0Vc8znc0GVi2VFE5iS7hiAa4HMIDDWk+Jcijv7AsYuM FzHpOofBxRz5CXqs7OdlNc0LqkFgH+qtEXuWetUVV/SX0ikQ1cZSSGxIpl8hFQpAE+Pl FEVjxZUy8GH+37m3L/EkjCjK1xwNc4pDwx+9uf3Qbdvny3WmXlffSWaHH7LK0HKrOI9e 8fMYyMK2zTKDcCQsZn87X9WxqNryMWDVg3odD9A9I4w1/yW1Y+ZdIph+2lJD/TW0zttO TnAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=dqwlpkGw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id co11-20020a17090afe8b00b002790fa91d77si13035648pjb.145.2023.10.09.22.35.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 22:35:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=dqwlpkGw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id A6CFE8027956; Mon, 9 Oct 2023 22:35:16 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377040AbjJJFfE (ORCPT + 99 others); Tue, 10 Oct 2023 01:35:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346623AbjJJFfD (ORCPT ); Tue, 10 Oct 2023 01:35:03 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3BE6A92 for ; Mon, 9 Oct 2023 22:34:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1696916056; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=of3RE6QBF1Jz2L+QOoIOgtERkMPSFMmd7Q1awSev4MA=; b=dqwlpkGwG+4/5UlYBlaSoEZsO5e7GCh/iP/PQ2nGvxCcmV8so74ob+iHZOZ/aCZCtYwXbJ o+n+nKVwohD5UrZclcn2aZLX8qUhf+8Gaq2fUcAl2NODtpg+iHsNsUzKDSll08fxoxFEf2 KQ9QAkcEpZPLRAdUSmf/Z8v4Q4ssf0o= Received: from mail-qv1-f72.google.com (mail-qv1-f72.google.com [209.85.219.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-41-gKgjwJR2PFeGP5MyItyf7g-1; Tue, 10 Oct 2023 01:34:14 -0400 X-MC-Unique: gKgjwJR2PFeGP5MyItyf7g-1 Received: by mail-qv1-f72.google.com with SMTP id 6a1803df08f44-6561b118866so66941296d6.0 for ; Mon, 09 Oct 2023 22:34:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696916053; x=1697520853; 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=of3RE6QBF1Jz2L+QOoIOgtERkMPSFMmd7Q1awSev4MA=; b=igJXSOpwekoXVnBKktUa6/uRkOBzkykadB3Tnu9c+rid2De/5Rv2oRjUO/6gXBTJ8x waaI+GbWOEsbnfCM0UEjx2ISrwE0RRB/YHMkGRzFdO9pPmZKClOG+h2c9ms9FG9J1DXE xjlVRY9tPgqP04SKV6tshzjZSQP6OwABAuOSvppoRAVDerlxtcOSMjp0+U8L0dVx/bkF Dgysbsc4nsRYmQVrfbSDfbWSRxj7hZg8RZDocbaFB8AJ7vLoVhaFHJXU/J5FTSTmeWgB lmuM++5VzOwfT44VwFqes5oRue/GotzYJbogWYm2BmHYnbGvx7vMQR/v42hulGMuYc7G Uqlw== X-Gm-Message-State: AOJu0Ywqkc7QtQZHHaqQ38FHnvlwX2fthmfF6k5HHa2cjdisJ78h+ikI F1dA06z4cfdzRJIRVkbUKJj2eE8LE6cx/R+gzcgfhqPZuInVO4lrBZy5CNbziZUq7F7iOshj5c4 C+qSGNRARlRdPGwUGc5iPtwK6 X-Received: by 2002:a05:6214:328b:b0:658:2857:ed6a with SMTP id mu11-20020a056214328b00b006582857ed6amr18640315qvb.43.1696916053786; Mon, 09 Oct 2023 22:34:13 -0700 (PDT) X-Received: by 2002:a05:6214:328b:b0:658:2857:ed6a with SMTP id mu11-20020a056214328b00b006582857ed6amr18640303qvb.43.1696916053527; Mon, 09 Oct 2023 22:34:13 -0700 (PDT) Received: from localhost.localdomain ([151.29.94.163]) by smtp.gmail.com with ESMTPSA id j11-20020a0ce00b000000b0065d034d8f39sm4436584qvk.81.2023.10.09.22.34.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 22:34:13 -0700 (PDT) Date: Tue, 10 Oct 2023 07:34:08 +0200 From: Juri Lelli To: Waiman Long Cc: Tejun Heo , Zefan Li , Johannes Weiner , linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, Peter Zijlstra , Ingo Molnar , Qais Yousef , Hao Luo , Dietmar Eggemann , Steven Rostedt , Xia Fukun Subject: Re: [PATCH] cgroup/cpuset: Change nr_deadline_tasks to an atomic_t value Message-ID: References: <20231009191515.3262292-1-longman@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231009191515.3262292-1-longman@redhat.com> X-Spam-Status: No, score=2.7 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Mon, 09 Oct 2023 22:35:16 -0700 (PDT) X-Spam-Level: ** Hi, On 09/10/23 15:15, Waiman Long wrote: > The nr_deadline_tasks field in cpuset structure was introduced by > commit 6c24849f5515 ("sched/cpuset: Keep track of SCHED_DEADLINE task > in cpusets"). Unlike nr_migrate_dl_tasks which is only modified under > cpuset_mutex, nr_deadline_tasks can be updated in various contexts > under different locks. As a result, data races may happen that cause > incorrect value to be stored in nr_deadline_tasks leading to incorrect Could you please make an example of such data races? Thanks! Juri