Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp634288rwp; Wed, 12 Jul 2023 20:55:51 -0700 (PDT) X-Google-Smtp-Source: APBJJlHl9LC0U/Zk7nS2CTqciDnfzXG0Bockbtm+9BuF9jhgjeI6zklpnfKwPOFTbY7iP7CTTpRi X-Received: by 2002:a05:622a:1452:b0:403:788f:5d0d with SMTP id v18-20020a05622a145200b00403788f5d0dmr690773qtx.0.1689220551387; Wed, 12 Jul 2023 20:55:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689220551; cv=none; d=google.com; s=arc-20160816; b=I5uQTFm2kf5FTxux4qVDmOla/DM3lXtgj5+LI/FHhUORsEAFU1firwbb2EE/bIzezW IYOXE4EJOKiNyQ3iCyosPvGl8SQZgpoH2PHntoHFv8g4gfjuV2D6fqEvPE5LwDPX6jBA IvcTgqNEGyCbwPyzKG/QgUNgeQrMDv0XTbL+DrMEHVZCeoIJnU92t2VD2glmi4IJ7xM0 TnZ7VEIbUg6Y6O92Rh5ingA46mBBdTToYrrtnMNldJdpT1cWXHxeGUrT/ExP4/VtNJgX d1U7xC4u5kBqJ/gceVaROCykNcaPkfePrtfzvgQ4cdSgY3734467/fWTRUkB6XUMZSWp SPbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=605YgMfajbHUM8zyPverYiNrP/gL/svBXPBHjEAyzKA=; fh=C4IOGkQKooc+We6Sbe0FeGpSXWME+eygsa18Gsc5Wlg=; b=ixeAyexk2TGq6P34Uz4yOBGwnKx636DUg4amyn0bKxWGY5xPCKimv7FkbaFAFF+NZR 65DsHmWtkxKJrCXfe//l1bJHSn9NM+Ry6dn4WatbkqfMKgH3rX90t1LCyDEaT65nhdKz V/pBWs9aC6KUFRLZvtAjjizFYQB7bqRF1Lhnk2NGZxAKBYTUokYyk8imnjpRXWVo2M3J 7R+uTKKfk7M7rutvo08DTjuJVSGh5ARSLc+ethyibJVWcjzGtUR6I/AX6gC8A7Ujan99 Kaa0ltBcH6c9OEkETJ8xtQaphao9x+EqcXes2V8xzKEmFBVqcGM8/R+B382U6RxKKUwg ZTVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=BDiydvVJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cq13-20020a17090af98d00b002563fbb8a85si4522925pjb.111.2023.07.12.20.55.38; Wed, 12 Jul 2023 20:55:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=BDiydvVJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233549AbjGMDVL (ORCPT + 99 others); Wed, 12 Jul 2023 23:21:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42342 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233421AbjGMDVJ (ORCPT ); Wed, 12 Jul 2023 23:21:09 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6059810FC; Wed, 12 Jul 2023 20:21:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Sender:Reply-To:Content-ID:Content-Description; bh=605YgMfajbHUM8zyPverYiNrP/gL/svBXPBHjEAyzKA=; b=BDiydvVJ4ED4g+lWwgib5QO/7H QE/h5ih5ZbmG0yjhU0PPEXbHnulFBdGPWy/GGmjw9G1rAjAOYZW8kV7/ryaNP+H/Yw0aS5YW+VuBG Dx6iikGUC33E/7DjrAwWYyYoqaCOmsyMg/daZ+KIdMkj4MLNoMNSVrGQVg8bctIhNbZDL2dty1ksW ZyBtcyRrVxk8cumG5VATCfRokvtNqFSAjIA+/V71ACX9LOL1VqsiKkv7swjvjPtkFB85ByoY+KBRi L6YypChaDTu2RDTBhQ9x84gcfgbMD5epaOhIFH+BSimfhR4jiBl3jBkJzkbF1SHW+8OlKN2gymFKq I9EWrwxw==; Received: from [2601:1c2:980:9ec0::2764] by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1qJmt9-001oD3-2n; Thu, 13 Jul 2023 03:21:07 +0000 Message-ID: <670a325f-f066-d146-f738-e5db1ca029ee@infradead.org> Date: Wed, 12 Jul 2023 20:21:05 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH 12/20] bcache: move closures to lib/ Content-Language: en-US To: Kent Overstreet , linux-bcachefs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Kent Overstreet , Coly Li References: <20230712211115.2174650-1-kent.overstreet@linux.dev> <20230712211115.2174650-13-kent.overstreet@linux.dev> From: Randy Dunlap In-Reply-To: <20230712211115.2174650-13-kent.overstreet@linux.dev> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, LGTM. I have a couple of small nits below... On 7/12/23 14:11, Kent Overstreet wrote: > From: Kent Overstreet > > Prep work for bcachefs - being a fork of bcache it also uses closures > > Signed-off-by: Kent Overstreet > Acked-by: Coly Li > --- > drivers/md/bcache/Kconfig | 10 +----- > drivers/md/bcache/Makefile | 4 +-- > drivers/md/bcache/bcache.h | 2 +- > drivers/md/bcache/super.c | 1 - > drivers/md/bcache/util.h | 3 +- > .../md/bcache => include/linux}/closure.h | 17 +++++---- > lib/Kconfig | 3 ++ > lib/Kconfig.debug | 9 +++++ > lib/Makefile | 2 ++ > {drivers/md/bcache => lib}/closure.c | 35 +++++++++---------- > 10 files changed, 43 insertions(+), 43 deletions(-) > rename {drivers/md/bcache => include/linux}/closure.h (97%) > rename {drivers/md/bcache => lib}/closure.c (88%) > > diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug > index ce51d4dc68..3ee25d5dae 100644 > --- a/lib/Kconfig.debug > +++ b/lib/Kconfig.debug > @@ -1637,6 +1637,15 @@ config DEBUG_NOTIFIERS > This is a relatively cheap check but if you care about maximum > performance, say N. > > +config DEBUG_CLOSURES > + bool "Debug closures (bcache async widgits)" widgets > + depends on CLOSURES > + select DEBUG_FS > + help > + Keeps all active closures in a linked list and provides a debugfs > + interface to list them, which makes it possible to see asynchronous > + operations that get stuck. Indent those 3 help text lines with 2 additional spaces, please, as documented and as is done in (most of) the rest of this file. With those fixed: Reviewed-by: Randy Dunlap thanks. -- ~Randy