Received: by 2002:ac2:464d:0:0:0:0:0 with SMTP id s13csp3245497lfo; Sun, 22 May 2022 23:44:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy3PWmKPFaOBu9mtLxrGNpZqwwZ8LMuLPlD4vF/OGz2oKaknDlig194AYUki9urEv++GpAm X-Received: by 2002:a63:df0f:0:b0:3db:2d4:ded9 with SMTP id u15-20020a63df0f000000b003db02d4ded9mr18882862pgg.267.1653288296800; Sun, 22 May 2022 23:44:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653288296; cv=none; d=google.com; s=arc-20160816; b=igMLVBkhIrzULxprgrbwvCxE/yHloVVPJVW+RZgXU8QrJryjagCTO2EQO+ILSlMR90 tV4X8LEPH7g5Zkh7QCdDOdIh/bRkCeKcZi00oC2XzQ6Id24ubJLk9uBo87EFbb575jBp XWPVau5/uJUngqFMkWW9iUPETPDNtKh1dOzWVBu2258Jn/08KZ/304vZY7ZaZNQpUCfj +XhdG4eCW290jIsyXyfgm+qKn1K8TzHiprRa3tYKXQ9SxVxFXMcCtIGWS4VXLxGzz/iv EYsyH09hvxJhQ4ibiAIBa0kNPB912JAUlZytfBS0saONp189/rjMwbL6hhMBAYX1AHwM CX8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=L9Uqg73Lka5chFS5zb9bS7SoEX4aGwiCW9rsgcbKHU8=; b=kVBgfAAqiUtlRx3GmDv0Bn2/34/ZQjh99Lb8IuOjJvidFgDDsL1OmJbmoKhJmEsIDM Q94RYexJjGD7gMiOK8Vd8cvvnYGs8bB47IRuuGmHf7ZeavWudT2exV4AHJCA6xYwdSgh bUAhqDvT3SnSGmoewAmyoh7pp/0VBJIu31MiMnsSecgE3pOluNYAr6cduQ0bgNiD2k2A q4a4kGjkh7cYqS9tdDqZ9XAzh01nhff5mtu/Kypg2f/IB5BU1yY/Sb6zDYTqRq+/R25V KSqhfAC1rXoyG6v8sBl5vABK0RC4U9RWl7BDzRMduUSs7rLRyTcMUAqkCSr/ICTe5/lk aVHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="WCgjyI/p"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id c19-20020a056a000ad300b0050de72cfdcesi14596259pfl.74.2022.05.22.23.44.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 May 2022 23:44:56 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="WCgjyI/p"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 286BE369FE; Sun, 22 May 2022 23:16:17 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351922AbiETQ45 (ORCPT + 99 others); Fri, 20 May 2022 12:56:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44420 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237781AbiETQ4x (ORCPT ); Fri, 20 May 2022 12:56:53 -0400 Received: from mail-pf1-x434.google.com (mail-pf1-x434.google.com [IPv6:2607:f8b0:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DE9C65C87C for ; Fri, 20 May 2022 09:56:51 -0700 (PDT) Received: by mail-pf1-x434.google.com with SMTP id y41so8211972pfw.12 for ; Fri, 20 May 2022 09:56:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=L9Uqg73Lka5chFS5zb9bS7SoEX4aGwiCW9rsgcbKHU8=; b=WCgjyI/pbMDZt70/ehioRounN5pA+7LkAnLwVBt5i2W43nM7tKoH6B5ttsBfWBgo6D ki/kXFgEIVboqXvyQa7Ju8Fe4j2gUlJDvQJ/z1Izt5yPYUeHzutkgKgMvjwLrulEG1hK hYg+HgyBXqyq/Z/nhlE7+ssXsm4fP2u2Ob1gqHeRYkLyEKVEmij0ed4Mua47CxL8W+6u eN0vFWoaM6bhlCvvxyG1dcvexERXpbuStK1Hp6VfxRKuHrI5RDL7hksQ7bMWM7ynVKmQ VvZS5J/C7XumERU5SOsgWCrqosIk8n2xBtOuih/QHUYxR3qQWVyCWhRQaxjLOplJQbrE dVNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=L9Uqg73Lka5chFS5zb9bS7SoEX4aGwiCW9rsgcbKHU8=; b=GZXmaC6dllbVUSy3v6clX1YSoyqgqZIq8Lppg96KkSQtBef81pD9LMI3VtPtg7UnDW 2sQ3VmAuzwxIz0RzNVg/gv4MA8sJ3SnlFpoihCq9pQZrpmsMgUBsYnF/J4xFOU1EvOyF eQgTDxWM/2ki8KXqdzRmebYzdeYbuXq/asP+pVNHZ3NwwOmvwx87ZaxVPGxzCCnKPH0F Mc0PrqDMtgVwq5qLic9FTqL7p9zAKtenDHJn29eYAkdLJ2k8+NZ2XQWkFYKYJSThHqb3 vk0XdrBik4jalLk6wF1qrasq6Psd8IwMI9sxQtb+QI53GD2sxPOXRMBn7wu68Ncg1Vl4 fThw== X-Gm-Message-State: AOAM5322kXiexJigx8NmV6MQ0+RootrjCQKp3G0u0Jq/yk714RrBlkzJ AqcqYs3Ta5j8r+Ybe8F55xVIrQ== X-Received: by 2002:a05:6a00:1709:b0:505:fa47:b611 with SMTP id h9-20020a056a00170900b00505fa47b611mr10982307pfc.65.1653065811417; Fri, 20 May 2022 09:56:51 -0700 (PDT) Received: from [192.168.254.17] ([50.39.160.154]) by smtp.gmail.com with ESMTPSA id iw3-20020a170903044300b00161a2d98a8esm5903314plb.226.2022.05.20.09.56.50 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 20 May 2022 09:56:51 -0700 (PDT) Message-ID: <1fadd74c-25d0-b9ab-8a06-27a9faa6579b@linaro.org> Date: Fri, 20 May 2022 09:56:50 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 Subject: Re: [PATCH] cgroup: don't queue css_release_work if one already pending Content-Language: en-US To: =?UTF-8?Q?Michal_Koutn=c3=bd?= Cc: Tejun Heo , Hillf Danton , linux-kernel@vger.kernel.org, linux-mm@kvack.org, syzbot+e42ae441c3b10acf9e9d@syzkaller.appspotmail.com References: <20220412192459.227740-1-tadeusz.struk@linaro.org> <20220414164409.GA5404@blackbody.suse.cz> <20220422100400.GA29552@blackbody.suse.cz> <20220519112319.2455-1-hdanton@sina.com> <25fb057a-077f-b601-dcb7-130071c733db@linaro.org> <489592f6-b783-7bdb-2cc8-0c8e35ebc674@linaro.org> <20220520164255.GB17335@blackbody.suse.cz> From: Tadeusz Struk In-Reply-To: <20220520164255.GB17335@blackbody.suse.cz> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/20/22 09:42, Michal Koutný wrote: > On Fri, May 20, 2022 at 09:38:12AM -0700, Tadeusz Struk wrote: >> as this is a result of enqueuing the same css->destroy_work onto the same WQ, >> one on the rcu path and one on the css_release path. >> I will prototype it today and test with syzbot. > In my understanding, you'd need two independent work_structs in a css, > not two separate workqueues to put the single entry on. I think either way would work, but two workqueues would be less churn. I can try both. -- Thanks, Tadeusz