Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2669232rdb; Mon, 5 Feb 2024 13:54:10 -0800 (PST) X-Google-Smtp-Source: AGHT+IHy44u/VZApKfr3nFi2VtxqP+RPxAtGcwxQVqBuqMZZETzpnsg2HIElzms07CGBp4hzJmc4 X-Received: by 2002:a50:99d1:0:b0:55f:ecdb:bcd5 with SMTP id n17-20020a5099d1000000b0055fecdbbcd5mr6984747edb.2.1707170050375; Mon, 05 Feb 2024 13:54:10 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707170050; cv=pass; d=google.com; s=arc-20160816; b=TBgkWdJE5V75b8YVykC+TJnWE1lIVrJmMx8wiilfGE9o3jGToblhqUOPg03k6El4I8 Jky45vD6EYlaQZQ2loAmaVcHflFvF0/UP6Ic3BAlKaeDEfR/7I46HQ5GT4eMuhAJoOMK mWuSjLoC9I6ag21C0f13mRSmHYXxxokxAUczvwgCN4Ukm95RZ/nphA7xA5q03iV1/etS o0jqfSs7hqUKjpsWi2FEGu9P6NRU/AwhNVfESpnNtrjEfBEfOhIjOejTP1EQ5YEg7fj1 iI6+9hS0avK/pIfl2q/+e4gf/jXi04VwApUj5UI/IGVx8teUMNtqdrZMtzQvNzU0arr+ waBA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=b5yztHDEz5ryVDr2lFRitQEpPkarGvjyutYElBOoSfQ=; fh=zB3Fb04XkQGcRDjoHbkS6dtkRxSqiq40Z2TYiBJ5pQk=; b=pLlGN38jE7o1JLvR98KDReZK3vXlOLpbPyLWSHpjz3ihS7uB/nJkRhm+3GzWkKEiEP 8suG8be4/Y85N0eqj3qyY2TpZHyUPsPjWT8hTgylLg5ekfNgJdIVwXyorOMSU8iDN1wA LMgPmkJgj07WuMR/3QH7DF4FOurB6H3teXtqEX0lkttwijYh1BOHChPNYOMjnUd5pnWZ h8MZSZsHdu1txcuFfC+UzbhhNXzQsaBbGWIN7hD3RdAwmQVI19ZqfQibGGtr1ab7i/bW D4DDKk9Ryu8Oav7AxuQ5ks9Af2fKaKRhP+56TZOVeMcoWCgloYvOrXAEAVHvXPaPlonA a0Fg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="iqC2Q/ew"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-53928-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-53928-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com X-Forwarded-Encrypted: i=1; AJvYcCVP/gn6p95GlVIjTkhvXMGekG99+SD2o6dIX+jmd++y5NSO+lFHl684rmNLueFz7S1F6GX9fwTc7h+vSZSB3SWHs6fOl+zBBeYT1bfZiA== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id v21-20020a056402175500b0055ec3228766si306106edx.622.2024.02.05.13.54.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 13:54:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-53928-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="iqC2Q/ew"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-53928-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-53928-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id EA4A31F2BF40 for ; Mon, 5 Feb 2024 21:54:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E15C74A99C; Mon, 5 Feb 2024 20:50:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="iqC2Q/ew" Received: from mail-vk1-f174.google.com (mail-vk1-f174.google.com [209.85.221.174]) (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 9E4071DA4C; Mon, 5 Feb 2024 20:50:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707166245; cv=none; b=aB859X2l+2WFH5rYJKdQNa+7VuhorryrZCHguqCb0EFJpl3AEOA00whs3qhpip1V3AtzBlxpcAjKSJBkUUcqvCTz3QDGPUmm8ur9yGlINt29Ke+lZIKlv1yfWJUOHwpO6OnMDWFcX+3QlF1+cYcIZvCtjfhWRgEp3nh5FRKk3yY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707166245; c=relaxed/simple; bh=lUkPMd5XHACLufFZ79Zzokj1SM1sqqtoROpSlvJd930=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=TInkNa7y8NTeMqx/Y1/KWeIsfZ8NcmVLy71zNHKdiZpuYkqjN/o0ma6DtnhcC4ZE09uWSmvzh7u760xrqpYTEsNKFlUd+uiOLLw1duExAciOVvHSgGgK8bNVrMKUI5ARk1duM/8EDxdXVekD6QScLKWFRly7o1qfCyJHwVyNvUc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=iqC2Q/ew; arc=none smtp.client-ip=209.85.221.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-vk1-f174.google.com with SMTP id 71dfb90a1353d-4bd45397c17so1561367e0c.2; Mon, 05 Feb 2024 12:50:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1707166242; x=1707771042; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=b5yztHDEz5ryVDr2lFRitQEpPkarGvjyutYElBOoSfQ=; b=iqC2Q/ewPlc5feiRZ1yFiF6RMOnfW4T4Nol1fLtn5A4E1KIRrImGSrmHC+aFVRl9aO mzORzC3/NgHzM9u84/X3N/Mg6UAvcn7+c1Zr6cF6uyu3zxKBQunbWBf3cY0X1x9Zk27q utY9iRKFuvSN1HKWQFKoG1kXIoDEYV+iDLsP79qx3TVPmi7tQSTAc3MmFoO9nkx2ObId gPKB3sltqJEE0wrc9q7oyfACGfiGfB31UTILHOe3AQJ/shwenD10L7LaIIodC4oonG8j 58Xrkpy46Wa++Jnl2cwa83ioYhY1DblmiriwNOVnRrLOV5BGAH0xRQzPWfF50yPTMNfG +LRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707166242; x=1707771042; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=b5yztHDEz5ryVDr2lFRitQEpPkarGvjyutYElBOoSfQ=; b=fToNGZTmuBaNWdt8ihUr9hH++WUru1WZ9XQ+Rcf2vRsY1vF6IBVebckaeBGEjds1KM D9RF8U2GE560zYsW+odCAbqcxFxqQUTpzuG5+Kws1rntLiOJPhRlP4uingyoWIHOZkhU A4vUaIBbc+PnxPFVOjYIPa9/BCd4JidbhhHmUXzvI/B5IzpmiyN8D3GlUT/A+rfQ87B3 rohAi8wN5cFXK2nwT+ZGTRFZIAX3AMF+zNyMsD2JVm1IoJ64Pf1M2o8/+Snku9dW4GzW 6sLSNLYNP48UTF4tmDOPB07i4wGJhuaUXK55d7zfCKPKor9wyaT7+CWmNuVsqvZ2fts7 3Thw== X-Gm-Message-State: AOJu0YwmjylEEvxhSLjAvkzovECKNzQr2K7Cc0DEnQu/hpK1yQtfFomg MyngRHi9J51v/5re9O/PFKQ43wKMlV/i27aT0Zs9OPdsKR+P2kzZ0006ABf7MpbPmeqx9GXcumd X18yi6wBLaFN/TtlFLfqv1uXn2mI= X-Received: by 2002:ac5:cf11:0:b0:4c0:3545:285 with SMTP id y17-20020ac5cf11000000b004c035450285mr657728vke.5.1707166242440; Mon, 05 Feb 2024 12:50:42 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240130091300.2968534-1-tj@kernel.org> In-Reply-To: From: Allen Date: Mon, 5 Feb 2024 12:50:28 -0800 Message-ID: Subject: Re: [PATCHSET wq/for-6.9] workqueue: Implement BH workqueue and convert several tasklet users To: Tejun Heo Cc: torvalds@linux-foundation.org, mpatocka@redhat.com, linux-kernel@vger.kernel.org, dm-devel@lists.linux.dev, msnitzer@redhat.com, ignat@cloudflare.com, damien.lemoal@wdc.com, bob.liu@oracle.com, houtao1@huawei.com, peterz@infradead.org, mingo@kernel.org, netdev@vger.kernel.org, kernel-team@meta.com Content-Type: text/plain; charset="UTF-8" > On Mon, Jan 29, 2024 at 11:11:47PM -1000, Tejun Heo wrote: > > 0001-workqueue-Update-lock-debugging-code.patch > > 0002-workqueue-Factor-out-init_cpu_worker_pool.patch > > 0003-workqueue-Implement-BH-workqueues-to-eventually-repl.patch > > 0004-backtracetest-Convert-from-tasklet-to-BH-workqueue.patch > > 0005-usb-core-hcd-Convert-from-tasklet-to-BH-workqueue.patch > > 0006-net-tcp-tsq-Convert-from-tasklet-to-BH-workqueue.patch > > 0007-dm-crypt-Convert-from-tasklet-to-BH-workqueue.patch > > 0008-dm-verity-Convert-from-tasklet-to-BH-workqueue.patch > > Applied 0001-0003 to wq/for-6.9. Applied 0004-0005 to > wq/for-6.9-bh-conversions. Will proceed on 0006 and other conversions after > more perf testing. > > Thanks. > Thank you. I am basing my work on the branch you have pushed.(or-6.9-bh-conversions) https://git.kernel.org/pub/scm/linux/kernel/git/tj/wq.git/log/?h=for-6.9-bh-conversions In the order of priority, I have started converting drivers/media/*, drivers/dma/* followed by drivers/net/* which constitutes the majority. Putting my plan out here so that the work is not duplicated. I will write back in a day and share the branch for review. W.r.t the conversion, there are drivers which call tasklet_[disable/enable](), which I suppose can be ignored in the case of workqueues, I am not entirely sure if this is the right approach. Please correct me if I am wrong. Thanks, - Allen