Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp5986887pxb; Mon, 14 Feb 2022 12:25:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJxL/aWtPUnKyvuurs1p8FtE642g/7UYKX3b5MeAIw/N3qoBFSq6QiXpaS5+/hG9sE/w62ih X-Received: by 2002:a17:903:2441:: with SMTP id l1mr550553pls.142.1644870354392; Mon, 14 Feb 2022 12:25:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644870354; cv=none; d=google.com; s=arc-20160816; b=vOL/l3+s8U3n6lMu9ld/exdXHrZJzh1P6Lwn/4901RGRuc8oDVzNvJp9ovaFNl9bUA iXRyu9AighuLRSWd2SQZUq9ZbHoK7MqYbKs51jpb4nqlFC84MCiJw8iAxLJxbJBnMUSu SlIBpvoS0pCAjD0aKwmsOOtry8zjY5hCUqu6HhSuZ0JerQW+3X7zFgjcbq9X3L8uXIz4 jsdc0gsfy0v+v7X4V/SYKz4cZ+Sw66oF5W0ERsjq45fcghqv8pyXWAOxSuhCRCLgYcub s7O1cqPLUtxoSOSHjc17u/3K1arAqjCk1geHQxPPzINttpD5euJY3sad0jn5chGSU3dP bBzg== 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=v+Ey5NMKiG8Gkw3VsvE5ft+DNkUaA7sEQdbyZtYBtUs=; b=f3LM7YQE9Dfe9uEfxlu7VnCn+cuZ6lHo3z5PjbN1qzc16AMdSR+z2+8f3IRDS0e9Ez z0ydeeU7d8PAdV8/wOxg4JCmgI9Xsr/Ptes9UoHG3Nk1P9JFF+IXAvzkMPL6l0QMBppR i+4vnNNxuhmqUrMqfhKWktS2QZhAi6lg49US1N2o9+YNvnSeoWdX+nYgPFqVrdGKJgd1 oNt4Zo79Ecpg//UUEfQIQdQ0GIBfxnhOn6NOdbNUlZBWkZJTB32hq5AVHRtu5qgfwiRS DuBXYTHVVa6fUGPXnruKI++LZiXejf5vo61Iv/c/Xl6PyG5FFi3ytpph7jF5IPIkImIQ zcvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Fn9IenRD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id r18si11737021plr.41.2022.02.14.12.25.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Feb 2022 12:25:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Fn9IenRD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A36F613C3A9; Mon, 14 Feb 2022 11:58:23 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236826AbiBMPd6 (ORCPT + 99 others); Sun, 13 Feb 2022 10:33:58 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:43022 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233141AbiBMPd5 (ORCPT ); Sun, 13 Feb 2022 10:33:57 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C15545EDE8; Sun, 13 Feb 2022 07:33:51 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 5A520611C4; Sun, 13 Feb 2022 15:33:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EDA45C004E1; Sun, 13 Feb 2022 15:33:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1644766430; bh=wP6wRP9xng+IpOBqQkrxjzoFZkcgVwGVuttr2jzeZDk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Fn9IenRDzTMMkkCufjI/zpC4U9VkuFtU42n8g533bcaSc38aszenqt0SE/zu53+NY MV/3efCazMZbk5RhpA9ujA78me6op53IcT3NTJ4mMmGmLi5bIQqHZoedyc8PZzwJ6m luqziaK9BIBxnViG/U789y8vaQPuWQx7WDhTvH0G41ywlpordOauwXIYxq5J9Dzjhl jZCqZXbpZAQFObLubFCKIi1SPNF3hho25UVNcmrCNLPThmDdjQgLgfAUzlblEByn3z EfEPEU9l7CZvE63TBZlmyEtY6azxFCsLksut+DqXWtUkCsTXHLDAGBufHun3Jgz40F Lzl6Wux/9dsGw== Date: Sun, 13 Feb 2022 17:33:46 +0200 From: Leon Romanovsky To: Tetsuo Handa Cc: Bart Van Assche , syzbot , jgg@ziepe.ca, linux-kernel@vger.kernel.org, linux-rdma@vger.kernel.org, syzkaller-bugs@googlegroups.com, Tejun Heo , Lai Jiangshan Subject: Re: [syzbot] possible deadlock in worker_thread Message-ID: 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <309c86b7-2a4c-1332-585f-7bcd59cfd762@I-love.SAKURA.ne.jp> X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, 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 Sun, Feb 13, 2022 at 02:14:09AM +0900, Tetsuo Handa wrote: > On 2022/02/13 1:37, Bart Van Assche wrote: > > On 2/11/22 21:31, Tetsuo Handa wrote: > >> But this report might be suggesting us that we should consider > >> deprecating (and eventually getting rid of) system-wide workqueues > >> (declared in include/linux/workqueue.h), for since flush_workqueue() > >> synchronously waits for completion, sharing system-wide workqueues > >> among multiple modules can generate unexpected locking dependency > >> chain (like this report). > > > > I do not agree with deprecating system-wide workqueues. I think that > > all flush_workqueue(system_long_wq) calls should be reviewed since > > these are deadlock-prone. > > > > Thanks, > > > > Bart. > I second to Bart's request to do not deprecate system-wide workqueues. Thanks >