Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1947152rdb; Tue, 20 Feb 2024 11:44:47 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXdnBlLWbEwDO0trPSLPuRhD/GINuYZec32vLPhF+fF6SXPWKPmnOEjnljPtgFg5NcJAJco3dVF9AVlo8UQRH9Qf+qq+CY3eXMqNNfC1w== X-Google-Smtp-Source: AGHT+IFjo+TpkQ8k4LGlagfGOVZcOURLgN+Mg+LJvuJgucTZvEAoAXAfzD7X1SCHbzBgUZCPd/0I X-Received: by 2002:a05:6871:58e:b0:21e:6a0b:70dd with SMTP id u14-20020a056871058e00b0021e6a0b70ddmr13849878oan.44.1708458287234; Tue, 20 Feb 2024 11:44:47 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708458287; cv=pass; d=google.com; s=arc-20160816; b=yIFdgRyjlWjynPNEng9GpueRQ+tufdzySJwgZ3UtDOMa+9JIX/BbxSbN+UObQFEYsG GjssomgdfSPdwlf11AKqVs8NOOmWW90JEikW+n5chzkQwyBGc4+VqaaX4ujfSf30iUDP Xtf2HDUlU02W884ZVQ42hcOmyR+YkkUswopkC2P5geBbKGDhNHJ45qEuW4zt1lAMEgY9 6MSOTQOJ/9sH1DTPWTKgh3YN1PBMPpyrWxW69AsyEYsJKy0tTFlRtVlHy+BdSsG3nCV8 ooHq4nlEHd9Os8LypLbIVxX7e+dyep3RsO5bCbW6R4FnnQwd0kvtK9L0ao1tK3d9RA+J ajjg== 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; bh=tf7nxv/yoeRZAIg/mVYOoRIe0Oc63BJnhI64NvPgd3U=; fh=7gXsVpmte3Qexs3KbUeyuRMrWF/Kpmo/KogA3+oQAHc=; b=p3rWGfdWnH9Ii3KqRNJ8Hg7ukPaYQbGy8pMY7Qszvb0xpwnPht6GTW8Sbn2oswp0nl 8Pw5VDJrvidSch/laN+TyD6yuHNC7sajx+1jxgoEPS/LRjFpYM7Bp5OXuhPZrl1VehK1 1ZjL4yMEpxeYY1V8vRCfwhRn5ggNjaILDdz1CoC0RG0I2TLsVkWLr7UozvJeaO1GSdcn UsGF/Y/6PWge4CNQIIZL5oyN8hf4eUcWLQHni4SpS7n8SL6inODIzk5FfxpzxzzYQm6y D5Bi25X3XDF/0zRjAJYvojaRJ/TzU7UdMPQX5Uwgle6AJzk8McD0Pn1BfZkO60mg15MO Xt/g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-73609-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-73609-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id f41-20020a05622a1a2900b0042e1614768dsi4772171qtb.768.2024.02.20.11.44.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 11:44:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-73609-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-73609-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-73609-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id D7D901C21B9B for ; Tue, 20 Feb 2024 19:44:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C50DB14A4D7; Tue, 20 Feb 2024 19:44:34 +0000 (UTC) Received: from mail-qk1-f170.google.com (mail-qk1-f170.google.com [209.85.222.170]) (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 90E6F6A8D5 for ; Tue, 20 Feb 2024 19:44:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708458274; cv=none; b=HNMrUTrlSaZk6Bd0RFzAf5vfHudRpmnm1Ze0H+vIK4dXPQa8n3Pvr0vcLNL3NpSiJ9GlYv0UhACFkaJh7vOY7vXgjej1T7QWjctYX4FFaDx+RoX2r5Zyve8FcOZf5RXU8hEQ8i2CYnHu3Gs22o2nElJHDA/3Kmp+/bsjljOAFOE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708458274; c=relaxed/simple; bh=egCrOOr50znuDik3a84ddfinZziKeyqdeCwPLOkPRHY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=lgcFsoelzF8iez43c47CLZvbO/1XimWaAwHz21wts5ePNZsHqnG6FF5QGVBX1BPxOMg4dVllyQsdsA+cdWTQJ2lV+xipL98GhKuRwnTOICcm5r5vqXAvXbbukvA+AZ0TbtskTgsbZBOpGuiOvOQAg6QInPWrhY2jd4fi6V/2WWI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org; spf=pass smtp.mailfrom=redhat.com; arc=none smtp.client-ip=209.85.222.170 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=redhat.com Received: by mail-qk1-f170.google.com with SMTP id af79cd13be357-7876f2a2e62so94751585a.3 for ; Tue, 20 Feb 2024 11:44:32 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708458271; x=1709063071; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=tf7nxv/yoeRZAIg/mVYOoRIe0Oc63BJnhI64NvPgd3U=; b=LbBX+hYblUZfSeu32q/M4Rzz05R9cw0ruddz8AforqKewmL2A4bXF7PevPu47O8dHQ LhH+SAinLkDBfy4Pd0JXRyYJN4V+MvyiYz+oKtbrPCmdTM9InciN9JSWAiAVAnTKov28 XAFY6itU6cRpAPLQ9Lv6p2BkLrg7Z83iuYTQDEoVRytGr0x2B0UW8qkVKfuFQsOeGp3O io949UZdUz5bcReJsCrO2wsLrmnt4U9Kc1zOxMKtjkRN+79C27YgXyAVv3e9VmV+5l+C OBo5FraX6ZTsGfNMtp2zGvBIDY2dsqfefGSBvzcVuaeFgfe8jXE5DQVmje3yeX77/GZj oM7g== X-Forwarded-Encrypted: i=1; AJvYcCWX8JhTyxbeRqYko8P8zu31cF9hP0b9quL4ETwvVah2HbbNmKM6PPxdnSJCz+3JaoUyhH9jzevIR7gcUd6PSG8KKbkLaL6R1Vq00hyX X-Gm-Message-State: AOJu0YyuB9alUKyDJWQ+XGdE5pdd8/WOMylL4esRMhLrS6Yzgny5lbg5 uvgCid0oc1EFhZVf6so0QsfEq+Q35snbio2xXP0O5bI+RiEu8LuQ6ug5pCkU9w== X-Received: by 2002:a05:620a:201c:b0:787:6c11:7d76 with SMTP id c28-20020a05620a201c00b007876c117d76mr6064988qka.10.1708458271439; Tue, 20 Feb 2024 11:44:31 -0800 (PST) Received: from localhost (pool-68-160-141-91.bstnma.fios.verizon.net. [68.160.141.91]) by smtp.gmail.com with ESMTPSA id x1-20020ae9f801000000b007873c82f0easm2905146qkh.113.2024.02.20.11.44.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 11:44:30 -0800 (PST) Date: Tue, 20 Feb 2024 14:44:29 -0500 From: Mike Snitzer To: Tejun Heo Cc: Linus Torvalds , 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 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: On Wed, Jan 31 2024 at 7:19P -0500, Mike Snitzer wrote: > On Wed, Jan 31 2024 at 7:04P -0500, > Tejun Heo wrote: > > > 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. > > Sounds good. > > > 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? > > cryptsetup did add support for it, so I think it worthwhile to > preserve the option; but it'd be fine to have it just be a backward > compatible alias for a more appropriately named option? Hey Tejun, I'm not sure where things stand with the 6.9 workqueue changes to add BH workqueue. I had a look at your various branches and I'm not seeing where you might have staged any conversion patches (like this dm-verity one). I just staged various unrelated dm-verity and dm-crypt 6.8 fixes from Mikulas that I'll be sending to Linus later this week (for v6.8-rc6). Those changes required rebasing 'dm-6.9' because of conflicts, here is the dm-6.9 branch: https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git/log/?h=dm-6.9 So we'll definitely need to rebase your changes on dm-6.9 to convert dm-crypt and dm-verity over to your BH workqueue. Are you OK with doing that or would you prefer I merge some 6.9 workqueue branch that you have into dm-6.9? And then Mikulas and I work to make the required DM target conversion changes? However you'd like to do it: please let me know where you have the latest 6.9 code the adds BH workqueue (and if you have DM target conversion code that reflects your latest). Thanks, Mike