Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1990242rdb; Wed, 31 Jan 2024 16:04:43 -0800 (PST) X-Google-Smtp-Source: AGHT+IHMSgvkZasx+zqjp4g02n/1oRJ9rHhimwsxkUIN/y+arEaWhRy+DXJ0HNNnzwHHTy1tQLN4 X-Received: by 2002:a17:903:120c:b0:1d9:f6b:28fa with SMTP id l12-20020a170903120c00b001d90f6b28famr3659240plh.36.1706745883483; Wed, 31 Jan 2024 16:04:43 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706745883; cv=pass; d=google.com; s=arc-20160816; b=KoDvuFaiLwlEDK4YWNhD5lStOGcMkRk/AcGeqkq1/pqcodo4Vbrbs2KGSk6o1CDolq fYeBvuUTO3+J+Cq5dqAJpFFzEkXVREWkg2eoq4Ds4vCTn6/9lnCi567oZmn7Gz9tXshs Xi89TAG2CKEt8sD8uDQU9SpzyFsLKHTR7ZyCGvy6K78OfBC1IWYIs2CFaD8xPRQCpvga GVF8eRv/vEGiaJBqP/vHBlmv5viV308c36RzQjYDFEssaHBBGqNlLj1J7WGKwhLaq+cd /xkUNAZSvCA4sqf7s2maPig5ugr498sxTXHRiVVDLF0fed3bzMS7tJilMLtw7dLK4MnQ JzTg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:sender:dkim-signature; bh=QWmJW1ioE6shF94cLYg8UXpbXdCkseBL4kZBLYoeBuI=; fh=AFV8YfJmv8hpA2SkoE6hlThPago4T2hw7N75S2eyqpY=; b=kD1aGTyyI99e/H9w/ks57Uge5vY7kfDNH4/Qvlwo34lPjyNJ2sgipkteUZfkjVIice rymjuh71FjF0Jjlu+Yo2TdOGez9y7/5ZnmywkCeRtWPg+81pTd74IaovzpGeDghOhAqG nRKfbqE6rBtVWRGs/VEm7WkkSi8ejwfkMPewAjScrsoZra16lIlCkvsRCkWRXN8wcPnf c9/WFRXxq1scLJs27wsTZhNpwucUv2DavbQlfIWDpF9PQLS8jP+0qHmMkkhSMDdYJA3/ imZxuju0fDtQze9ghlG8tML7IjUDzi77BrAxRjdzmILCC2laXBoqQ6sTCE0TZNxs+2z8 +GFw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=h9TQrAbV; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-47409-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-47409-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=1; AJvYcCUnAKQus7g386PVYhpuI7lLi78Dw1bgUoHo8AgxPyYXzW1AFRF5LHQuc86fN32uSjVOaDIMwkbJA/yn0Iq1gci7uyuNkBbZeqyK6nRsdQ== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id u1-20020a170902e5c100b001d928abd94csi2698907plf.551.2024.01.31.16.04.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 16:04:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-47409-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=h9TQrAbV; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-47409-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-47409-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 sv.mirrors.kernel.org (Postfix) with ESMTPS id E32F9284234 for ; Thu, 1 Feb 2024 00:04:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 803BEA3F; Thu, 1 Feb 2024 00:04:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="h9TQrAbV" Received: from mail-pf1-f181.google.com (mail-pf1-f181.google.com [209.85.210.181]) (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 2E62337C; Thu, 1 Feb 2024 00:04:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706745868; cv=none; b=gD4NcGoqqYIfKF/rJ8jpHInkpuJcmts7H1BCKrD+I9jIEL8TQ3KnPePoobofh/1RrpIZB6YCuuxa+dfOweyNVjFB3cc6GVzl+b3xMm+6NhiMtYP24dBKlMohRc2zt0Hu+MqilXyHk556l0zTK2wMMB4rRdVXThWdHTB/QfMQ/Lc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706745868; c=relaxed/simple; bh=ocp7AlYTWdpktj/bKSgADTaYJuvdE/zKdxZf6Npx1Kg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=D3pz66sVxfJGOyHgLplQIUWhAoXU6oibiUriLQLp7dITL+wc1mrHYj7HGQPdU90dTzje7f9vLPQY6ncob/lBYkm+48+PitWPzh0EV7c65uw2KLSMMMEu++glPrNinnxp4Y0mLcZtr83g8nRRwgUT5Mek0UJ5cm6JKbVixElK4x0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=h9TQrAbV; arc=none smtp.client-ip=209.85.210.181 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pf1-f181.google.com with SMTP id d2e1a72fcca58-6ddb129350cso227815b3a.3; Wed, 31 Jan 2024 16:04:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706745866; x=1707350666; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:from:to:cc:subject:date:message-id :reply-to; bh=QWmJW1ioE6shF94cLYg8UXpbXdCkseBL4kZBLYoeBuI=; b=h9TQrAbVdqErNQWKOE2o55fn2ZaOQbFr4FxM2aEUYvaAQ38nZllnVy3ZU4RVmC2E9U I+kPu7BlXSu+hcCkuXx96kyBqxlyFVt+5YA7GFmlT6EbDRVsdZEO7tH6dPbhVJ/aNykH H5fyVLERaCVQGeQaybF4SSmO6o40eVxbToEIeSNzherMCG2GE3u2v606M71PE3blkad+ 1Eslf3KcjHWYqu0vC6uoTFcXjCwNWivuCq27ZOrxzZ4ZRW5aEgjH73BuhdLHQ9Tq4x8s rB8wfrydKDQNegS4ErRgFplngPbvsEZauAXdbLqFjtaLOwq5y7uJbRakJD2o6ilLfd4U YGmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706745866; x=1707350666; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=QWmJW1ioE6shF94cLYg8UXpbXdCkseBL4kZBLYoeBuI=; b=VkdkvcD610i90dvrbVV0gDCTwsdSUonIN9hdbFldWCgpFnRUTKVQqZRxhiINRcj5Qx hks3oNLQ93I72czpT9MxxJAg/GuURuf/ujqhgjjcbDMBRmhTqNfPOz/fIDty1dXkMcZX AdbukNPqJ6A1Xo3/7pLQbV8rvX75h3iEp051/Cw5ymVk/qKv9loZgwiCgqRqEAk49CIk K8LHo3WktDZgR1hMSiHnkEcMjm0qcDS13mO7lagkoS/b7MDuo3FQZKjyODhQ8HFeY7uw j080gUQjZMtorXi5Tg2JW0vZoPVWf+g/o4danyz15syvxrKY3P28SZsFjmMJEJPOG3eA tlNA== X-Gm-Message-State: AOJu0YyuVF61qtYbiIW5isDMFxTdFzVjxj8Xa4BOdvOa7aR3Hvqa7dZj s9ZITcsawNmZlMIFTtsdOsapgHIS2dYZAy+agPCyKdwN+VYyW9Sg X-Received: by 2002:a05:6a00:1c91:b0:6d9:ac1f:421e with SMTP id y17-20020a056a001c9100b006d9ac1f421emr3881511pfw.26.1706745866320; Wed, 31 Jan 2024 16:04:26 -0800 (PST) Received: from localhost (dhcp-141-239-144-21.hawaiiantel.net. [141.239.144.21]) by smtp.gmail.com with ESMTPSA id jw3-20020a056a00928300b006dbd2231184sm10443282pfb.70.2024.01.31.16.04.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 16:04:26 -0800 (PST) Sender: Tejun Heo Date: Wed, 31 Jan 2024 14:04:24 -1000 From: Tejun Heo To: Linus Torvalds Cc: Mikulas Patocka , 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, Alasdair Kergon , Mike Snitzer Subject: Re: [PATCH 8/8] dm-verity: Convert from tasklet to BH workqueue Message-ID: References: <20240130091300.2968534-1-tj@kernel.org> <20240130091300.2968534-9-tj@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Hello, Linus. On Wed, Jan 31, 2024 at 03:19:01PM -0800, Linus Torvalds wrote: > On Wed, 31 Jan 2024 at 13:32, Tejun Heo wrote: > > > > I don't know, so just did the dumb thing. If the caller always guarantees > > that the work items are never queued at the same time, reusing is fine. > > So the reason I thought it would be a good cleanup to introduce that > "atomic" workqueue thing (now "bh") was that this case literally has a > switch between "use tasklets' or "use workqueues". > > So it's not even about "reusing" the workqueue, it's literally a > matter of making it always just use workqueues, and the switch then > becomes just *which* workqueue to use - system or bh. Yeah, that's how the dm-crypt got converted. The patch just before this one. This one probably can be converted the same way. I don't see the work item being re-initialized. It probably is better to initialize the work item together with the enclosing struct and then just queue it when needed. Mikulas, I couldn't decide what to do with the "try_verify_in_tasklet" option and just decided to do the minimal thing hoping that someone more familiar with the code can take over the actual conversion. How much of user interface commitment is that? Should it be renamed or would it be better to leave it be? Thanks. -- tejun