Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1326034rdb; Tue, 30 Jan 2024 15:25:06 -0800 (PST) X-Google-Smtp-Source: AGHT+IHVV+2TFdZckpuA0kbYmudIW70MN+kI/yC83lnZ+NZJVfeTl8Rpu0cu7MH1mi8MhTrmsQeC X-Received: by 2002:aca:2816:0:b0:3be:a580:6b8c with SMTP id 22-20020aca2816000000b003bea5806b8cmr132242oix.48.1706657106744; Tue, 30 Jan 2024 15:25:06 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706657106; cv=pass; d=google.com; s=arc-20160816; b=EwT5TISy1PXfePpP/lK2NMWHKINMGkY/zyISObKChGoubZCAhpoMurcmq7V9Ad5GC7 LB//jsIWu+JBjxq/mQZQLa+3rszIWvOOdRfu9ExFf2yf+go0o0RwKg0OFe+xCVRjex0s +/8h/47D94PZzN7OEY1JxDyBF11yKVE49xP2WWqbodRXtLJiObDqyE9R6LZzR7c6No/y XCiq5wq+1BASdJjZGY0F8UqM3GdhAk7B13lIFlcY9zy5FuOJlBksG1FTo5HEO6JV+IRi dXKkY6op8cVoDvB90lFHSE0HeizZJLT/9Q/5j20VkjXS0v1DKcDYIIySqFcH/AMwRWuL dT8w== 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=3M0wWn2WcqB5JyFL/iZZPD7cHnf4NTD7VpnGyg3ebus=; fh=3p/+WCDiZbjMW0nwhrI/XWDGD/ppluI0blhUAEeYDmI=; b=ZVxIXMRhjCI7FOhE1sNK6CswHyxZU8CS0reOJ6SZOWOabc3mHfWqBxtsAELNy1CKcJ 1umlVBoLYlkyAL3QMfa6whJN9ajafXb+8G4WG5cHFO80IkMJT8ZC2OtKjmKnfBEaFpMQ 3kX/PcVIVAGFJosx5lO0WvMB8Uih2lyISEZqv5mcOibzJUjjMXYZQzLgubS4WN6JJax1 R8CJ8COk/xcUL6SNBYXnYKI/3Ffa7rPi9OklaGSiAQ0iKmWMXAzJmnL5xgQ0oRJh2XGt ZYEgKRVqquM/HLIkpiX/5Tk6aq8yCnoW4b5r2kc2ptzi5KjyVqZUMhIQP0dLi3LbnbwF kANA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=TOn1Lcre; arc=pass (i=1 dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-45037-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-45037-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id j14-20020ac85f8e000000b0042a3a67b7desi6665043qta.744.2024.01.30.15.25.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 15:25:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-45037-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=TOn1Lcre; arc=pass (i=1 dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-45037-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-45037-linux.lists.archive=gmail.com@vger.kernel.org" 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 88DA71C250E2 for ; Tue, 30 Jan 2024 17:25:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 526C212BEBA; Tue, 30 Jan 2024 17:25:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="TOn1Lcre" Received: from mail-lj1-f180.google.com (mail-lj1-f180.google.com [209.85.208.180]) (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 E15BA1292DC for ; Tue, 30 Jan 2024 17:25:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706635539; cv=none; b=sTPXG890t9gIxjFPAC2c1lBgTQwzfvYyC8VsZz2dNG6jsIRs8m79ZZ1rWwUI+//QfEocx7XoDmMkm8hhy557/qnvnAuLOtL7z4ZFNit/89vjkpptfxaSSgTmzjerMXucWdO1K1E7hZCgUUBoNYdzv1oAFYQKoe9duukTNQzDPrs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706635539; c=relaxed/simple; bh=FcwkWgQyZxHw0vq0MR9FTO1uQCeqns6oU7XSsrjb7aE=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=ucavaf4N2bkj1x8S/IJ0ljua5Ecob/MCCXDuVK0MTSf2o5RSx1gtR/ATW1wjp7h0hJR+PRjVO+tXXMlqu73Nu40fTEZNLU7NEex36xACuiMx8p5VuNRXFxAv53UUVXmUmYmHcMJh0gGEyfEj54+7L7Fz/EXHwEo5Yf8Ag8DIFqk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org; spf=none smtp.mailfrom=linuxfoundation.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=TOn1Lcre; arc=none smtp.client-ip=209.85.208.180 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linuxfoundation.org Received: by mail-lj1-f180.google.com with SMTP id 38308e7fff4ca-2cf42ca9bb2so50164191fa.1 for ; Tue, 30 Jan 2024 09:25:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; t=1706635536; x=1707240336; 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=3M0wWn2WcqB5JyFL/iZZPD7cHnf4NTD7VpnGyg3ebus=; b=TOn1LcreSMIM6/zFLzh4cG5qTx+j3gS42S7jY7daQlEKRMEXTFX5dTUwH1HQo+bhlG xa7deIbmurGZi/QjEqzH/VtXqNqAECJXK/E2mT2hzt6095S0qg7HxSjMKrB4AmTbV3o5 XNW/tAikyUj7pX/1ejL4o6+uz3TBWzrQkhQrI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706635536; x=1707240336; 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=3M0wWn2WcqB5JyFL/iZZPD7cHnf4NTD7VpnGyg3ebus=; b=IZyyfrRYHt/a0XMjxm7F+5BgLmUxOE32WzBxsevvlcR66DDtgq0u3ZheOT+RYtZZ4m QKyLOCICtOzyiy2yscGSg1MzqSscoKyeuYavb+ILM9RZqHnEo7/zPT1hg2h5CLb9pdlS J+ssswkTALjPfpRoTQJL6hk34Fu1iyrSDnszUjJnC7GI6NPBWbEqaEFqAAR8YpCI2mVD jRB2lY8rDTlyi4lVnhO4PgAJc3ixJ+iVulJcap/2J56isSMLU0EzU8ZnpM3nLopaf3F8 gNrs0OPejeQCtAukqj1T7PoIhaH2yMtHELLEMd3Br3dX9SQjPtmXH2jylIOTO0t6Nu0E B0Mw== X-Gm-Message-State: AOJu0YyuSF8xn2Vyul2m398ScT7v+NkwIwPcfGNHYryRhhCPhikSa9pS ghHNdX4/dmCyEZbnJ2Os5fH4+IKd3mcpzHyX5eCSDvWSyKS4KKm55diF01swVDiwSyl06+DJp2/ WtTM= X-Received: by 2002:a2e:960d:0:b0:2cc:6fe2:4ddc with SMTP id v13-20020a2e960d000000b002cc6fe24ddcmr6246933ljh.3.1706635535717; Tue, 30 Jan 2024 09:25:35 -0800 (PST) Received: from mail-lf1-f53.google.com (mail-lf1-f53.google.com. [209.85.167.53]) by smtp.gmail.com with ESMTPSA id f24-20020a2eb5b8000000b002d05fe442f4sm173149ljn.50.2024.01.30.09.25.34 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 30 Jan 2024 09:25:35 -0800 (PST) Received: by mail-lf1-f53.google.com with SMTP id 2adb3069b0e04-5100cb238bcso7646447e87.3 for ; Tue, 30 Jan 2024 09:25:34 -0800 (PST) X-Received: by 2002:a2e:8417:0:b0:2cf:36b:9abb with SMTP id z23-20020a2e8417000000b002cf036b9abbmr5802206ljg.44.1706635533757; Tue, 30 Jan 2024 09:25:33 -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> <20240130091300.2968534-4-tj@kernel.org> In-Reply-To: <20240130091300.2968534-4-tj@kernel.org> From: Linus Torvalds Date: Tue, 30 Jan 2024 09:25:17 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 3/8] workqueue: Implement BH workqueues to eventually replace tasklets To: Tejun Heo Cc: 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, allen.lkml@gmail.com, kernel-team@meta.com Content-Type: text/plain; charset="UTF-8" On Tue, 30 Jan 2024 at 01:13, Tejun Heo wrote: > > This patch implements BH workqueues which share the same semantics and > features of regular workqueues but execute their work items in the softirq > context. Thanks for doing this. Honestly, while I felt this was a natural thing to do and would clean things up, every time I look at the workqueue code I just shudder and go "I'm sure Tejun can work this out". Patches look fine to me - I'd love to actually have the dm-crypt people (and networking people, for that matter) verify that there are no performance gotchas from the slightly heavier (but more generic) workqueue interfaces. Linus