Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp2693949rdb; Tue, 12 Sep 2023 09:16:36 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEc890+Zhg6T89EI3b5iZ4YLbWZ3zEX0k/dy9ZGl5SUAu4Vxb0GbdrlU0dEQfSODv4Db7Bx X-Received: by 2002:a05:6a20:e125:b0:137:3c67:85d7 with SMTP id kr37-20020a056a20e12500b001373c6785d7mr14094702pzb.16.1694535395965; Tue, 12 Sep 2023 09:16:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694535395; cv=none; d=google.com; s=arc-20160816; b=c7Ml/LEJQqbyDzHJF4b4keXtIVr/tdMU6/YNAf1sjONr2iZeP/4xKtuJFG4kR6Hb03 diyKnVzzQe63FKXAM+kkM91FukyvMIlv4S43cr7iDCyIeNuB53AIuyB7VGUyjO+pQJp8 cCYPRvo26GvyAKt0n77ytAxOwaKvZNu9eCKt1IgFyM+ozeTEQnM23gKthtG9Ule9H/XM SMl9GG6tHsYAfPqfkaBgEmUFTpvFCHNsGq0a//jxzpc9K3+6qTH/nvoLArXlPKF5Q7Rr PzuQ4eZXJApuQDSj5OfLk+Q2SJ3nzX7q5OMEu+7/VmUDi3RAkDzzVQ1ANKLap+ROCvu3 +V6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:references:in-reply-to:subject :cc:to:from:mime-version:content-transfer-encoding:dkim-signature :dkim-signature; bh=Rh7F3S61PjrxqXKWwokxFxj2WiyskgmEmJI3rKq9O/A=; fh=l/D038H9rRxyCX70K93DYIZbd1yuV/W/1RoDMcVPGVQ=; b=yQbDU9DuXzV4ksZ6mClQXuw6dly2lUH/lvQtlqc0IPdbfcCW1/G1CCmDWY3vhv+sFu sSkIa4CsBSVIZ5UN8tw7MG8qxjpWx0nzHC4+7dnpconlH4CqwuKBDuyiQGPMew/qRkPq ebuT193EV9fJde66LCm141W/9obfC0s5PnkpC1fIJ7UKstEPSpMwiQG6K5yAU8b1fuaY FqNyx9WAcLEYzmGgXL0tssqSt1njmSo82Tsx4NbRiy764J4KKVS7oKGAi5g4SwvT9gFK jmIBV/dXDzke5vVVUReU4QWHlGPo7+cNpvUZxiTXl7t03MBHjUhGrP9bLcrKFwmpfv/a ZI0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b="ogDJxf/H"; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b="KM/KTuQQ"; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id e30-20020a63545e000000b00564bcae8b53si8063749pgm.803.2023.09.12.09.16.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 09:16:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b="ogDJxf/H"; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b="KM/KTuQQ"; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id E514687A2748; Mon, 11 Sep 2023 21:50:28 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229866AbjILEIY (ORCPT + 99 others); Tue, 12 Sep 2023 00:08:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43188 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229488AbjILEIX (ORCPT ); Tue, 12 Sep 2023 00:08:23 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 19300D7; Mon, 11 Sep 2023 21:08:20 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id C4D7B1F8D7; Tue, 12 Sep 2023 04:08:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1694491698; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Rh7F3S61PjrxqXKWwokxFxj2WiyskgmEmJI3rKq9O/A=; b=ogDJxf/HcVXEd6KH4AAO73Z/IGRdsCTGfQJBycEhJCwfTM490QNMuN0MvseKJsxnsydan+ EksUr3Rt6ZrKnjlBlVbaKlZRQlSDLNiOWvM+ZDSikNu9lYeWnkFEpqPqHMmNPJUCc/Ags8 w7JLVgCRgvBBTz22Pi/vGusaE9D4L9E= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1694491698; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Rh7F3S61PjrxqXKWwokxFxj2WiyskgmEmJI3rKq9O/A=; b=KM/KTuQQ/RGpqVzCaLGlPqWvAGJ716DHv2tU5kO0pqn02AWFWjlQEfVHoPsIKjIuY76bi2 ZvpijTabfJ8LeLDg== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 5E8B413A2E; Tue, 12 Sep 2023 04:08:15 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id V8qvBC/k/2QgJgAAMHmgww (envelope-from ); Tue, 12 Sep 2023 04:08:15 +0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit MIME-Version: 1.0 From: "NeilBrown" To: "Kees Cook" Cc: "Chuck Lever" , linux-nfs@vger.kernel.org, "Andrew Morton" , "Liam R. Howlett" , "Kees Cook" , "Greg Kroah-Hartman" , "David Gow" , linux-kernel@vger.kernel.org, "Chuck Lever" Subject: Re: [PATCH v1 11/17] lib: add light-weight queuing mechanism. In-reply-to: <0D0F3EEB-B837-4C65-95BF-99ACF3169206@kernel.org> References: <169444233785.4327.4365499966926096681.stgit@bazille.1015granger.net>, <169444318342.4327.18355944158180782708.stgit@bazille.1015granger.net>, <0D0F3EEB-B837-4C65-95BF-99ACF3169206@kernel.org> Date: Tue, 12 Sep 2023 14:08:11 +1000 Message-id: <169449169186.22106.13281613238195902818@noble.neil.brown.name> Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Mon, 11 Sep 2023 21:50:29 -0700 (PDT) On Tue, 12 Sep 2023, Kees Cook wrote: > On September 11, 2023 7:39:43 AM PDT, Chuck Lever wrote: > >From: NeilBrown > > [...] > > Does not use kunit framework. > > Any reason why not? It seems like it'd be well suited to it... A quick look didn't suggest that using Kunit would make my task any easier. It seemed to require a lot of boiler plate for little gain. Maybe that was unfair - I didn't spend long looking. Partly, I put that comment in the commit message so that if one wanted to try to change my mind - there was a prompt for them to do it. Also I had a quick look at other test code in lib/ and it all seemed to use the "run some code at boot time" approach. So if anyone can make a clear argument why using Kunit will help me, or will help someone else, I'll consider it. But I cannot see the motivation without help. Thanks, NeilBrown