From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CC5DEC433EF for ; Tue, 15 Feb 2022 17:05:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242186AbiBORF5 (ORCPT ); Tue, 15 Feb 2022 12:05:57 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:60938 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233335AbiBORFv (ORCPT ); Tue, 15 Feb 2022 12:05:51 -0500 Received: from mail-pl1-f179.google.com (mail-pl1-f179.google.com [209.85.214.179]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B13EE119F7D; Tue, 15 Feb 2022 09:05:41 -0800 (PST) Received: by mail-pl1-f179.google.com with SMTP id w20so13546500plq.12; Tue, 15 Feb 2022 09:05:41 -0800 (PST) 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:from :subject:to:cc:references:content-language:in-reply-to :content-transfer-encoding; bh=4XleEJH2PpPwterBCnSkkR/rDNNZHaszB5/lLGm5Jr8=; b=YKmxkeg86vq5E6cymgjlRtdMG5D6dpssYCjoegbIsVpE/2JlNnLl/J9tubFrO5Hyj1 8dy5PBYZFHxib97TngQe/Sdbg4X4v9QYYwSZcLbf+/6ZCqRPBW8FwHfcgUjdtN3pSNYE qaESZmHIjD77qS9CcClAvqXGhvkuch5Voc2e/ewVjn0F8aqkRNiebLZzdQzUCVn9wHYH eYDf1iTVJi7NTD26NOyADrhG1rHkad2e/5Za3A+H6cbTqJuqN/fdilqEjO31CvU/JXe7 EPgewtJk+gKXob9FtgOrXVsSR+qL7z4QYI5aSIHc/leX9mIIeO+q25FkNbBguWE+YkDM gkSA== X-Gm-Message-State: AOAM533m8oqF4UzPUgCF45vKzCNEGRY2D3faipQJ8AQGgLk+OxkY+rKn R3VozphTJFXopjHHODevGnZKLmmV5XS0OA== X-Google-Smtp-Source: ABdhPJyH++fmcBHWOXSUsKOkMW1j6B4LcjIc70lGuuPs7x7cKgQoWskWdeF3hKJdcYUo9xL4U90E4g== X-Received: by 2002:a17:90b:1b0e:: with SMTP id nu14mr5451669pjb.233.1644944740896; Tue, 15 Feb 2022 09:05:40 -0800 (PST) Received: from ?IPV6:2601:647:4000:d7:feaa:14ff:fe9d:6dbd? ([2601:647:4000:d7:feaa:14ff:fe9d:6dbd]) by smtp.gmail.com with ESMTPSA id j12sm35280608pfu.79.2022.02.15.09.05.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 15 Feb 2022 09:05:40 -0800 (PST) Message-ID: <1b70929f-1f73-c549-64c1-94cea2c1a36c@acm.org> Date: Tue, 15 Feb 2022 09:05:38 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.1 From: Bart Van Assche Subject: Re: [syzbot] possible deadlock in worker_thread To: Tetsuo Handa , Haakon Bugge Cc: Tejun Heo , syzbot , Jason Gunthorpe , LKML , OFED mailing list , "syzkaller-bugs@googlegroups.com" , Lai Jiangshan References: <0000000000005975a605d7aef05e@google.com> <8ea57ddf-a09c-43f2-4285-4dfb908ad967@acm.org> <71d6f14e-46af-cc5a-bc70-af1cdc6de8d5@acm.org> <309c86b7-2a4c-1332-585f-7bcd59cfd762@I-love.SAKURA.ne.jp> <2959649d-cfbc-bdf2-02ac-053b8e7af030@I-love.SAKURA.ne.jp> <8ebd003c-f748-69b4-3a4f-fb80a3f39d36@I-love.SAKURA.ne.jp> <76616D2F-14F2-4D83-9DB4-576FB2ACB72C@oracle.com> Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/15/22 04:48, Tetsuo Handa wrote: > I do not want to do like > > - system_wq = alloc_workqueue("events", 0, 0); > + system_wq = alloc_workqueue("events", __WQ_SYSTEM_WIDE, 0); > > because the intent of this change is to ask developers to create their own WQs. I want more developers to use the system-wide workqueues since that reduces memory usage. That matters for embedded devices running Linux. Thanks, Bart.