Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 90216C636CC for ; Tue, 31 Jan 2023 19:01:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232019AbjAaTBt (ORCPT ); Tue, 31 Jan 2023 14:01:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232005AbjAaTBn (ORCPT ); Tue, 31 Jan 2023 14:01:43 -0500 Received: from mail-pl1-x632.google.com (mail-pl1-x632.google.com [IPv6:2607:f8b0:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 718C458644 for ; Tue, 31 Jan 2023 11:01:28 -0800 (PST) Received: by mail-pl1-x632.google.com with SMTP id k13so16128155plg.0 for ; Tue, 31 Jan 2023 11:01:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=ee8VrbotWmdr9Bi0GM3TMNLFcbwdi2SIi4lojz2pU58=; b=XvW89yFHLvEH5FtjCjRzR1OcJ9e6Q58euegSx2t/bvrMiQ5qefxzakEVcB/6eZBa9L aB0SonjcniQJivx3I+EUo9hrv2nvPpkD998u35GBnao5S0MJNobwq/9gCgLctoVY7pxg 3iQFaU3hKm9nvR22Zi/bfyCtcuCISGSCboUIshOy8BEvkAmPsznDfT7TeamE0exui72G 75PgLUdYiT0OSJne1pbDFsnekXMhCVyNJBks6dMjfyf9AWLGr1F4oMbIIbWQczDioaDl vw1zrXclFSM1gAquI9b4DkESWnFEoT4iItwB6Fgz/Y/wV7j3MjDSs25KdI/gXkZV4RM+ GCdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=ee8VrbotWmdr9Bi0GM3TMNLFcbwdi2SIi4lojz2pU58=; b=YRw8rbg5jC/l7mDGQv2JavQ5L/oG5aPv+xjbgMHSLOycLIVbGjSxLGLyeGIEhneDmj d3ZV9UCRQmVDQsnBEEamTZ4NFkccwgXYeTXSuGYGtMplZ3TgJqFMQ2ih6zKxyilLi6o1 rqmCDwslgkeG40V0mbJYDu3ddt7HNbbtcIulrPut6uXYsau7yQ16bDkEvIf2d2sh253V RjOccC3BKNkQYj4L55KXuIoEG2nDNlqtKHJ09qBSfMA3ZkHuoRG00+up7nTsNGMCNpKe PlhbSoXgoSKg87I/eI2/cVPHjUP5mXyMa0L32IJ69nSxwxuUOg1iirpbvmvVfSrh+rmM QUwA== X-Gm-Message-State: AO0yUKXqGt6B0d8NTUb/Apn+93f+14EiSrAWAdXvmrDOZWMz1Bargov7 M4Ikv/D0RjDANBSCwii6DS0LQPVbGHDg69O8imc= X-Google-Smtp-Source: AK7set+yUD4D01GYukAfSV3dRkXZgkK9SbG2nkRlsQJ0msHz2SU+hB69wi+HMHIV6g6rIgPYOsJAPCBLTQlxMWGR0UU= X-Received: by 2002:a17:90a:cc5:b0:22c:4462:fb92 with SMTP id 5-20020a17090a0cc500b0022c4462fb92mr3208121pjt.44.1675191687937; Tue, 31 Jan 2023 11:01:27 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Andrey Konovalov Date: Tue, 31 Jan 2023 20:01:17 +0100 Message-ID: Subject: Re: [PATCH 06/18] lib/stackdepot: annotate init and early init functions To: Alexander Potapenko Cc: andrey.konovalov@linux.dev, Marco Elver , Vlastimil Babka , kasan-dev@googlegroups.com, Evgenii Stepanov , Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andrey Konovalov Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 31, 2023 at 11:31 AM Alexander Potapenko wrote: > > On Mon, Jan 30, 2023 at 9:50 PM wrote: > > > > From: Andrey Konovalov > > > > Add comments to stack_depot_early_init and stack_depot_init to explain > > certain parts of their implementation. > > > > Also add a pr_info message to stack_depot_early_init similar to the one > > in stack_depot_init. > > > > Also move the scale variable in stack_depot_init to the scope where it > > is being used. > > > > Signed-off-by: Andrey Konovalov > Reviewed-by: Alexander Potapenko > ... > > > > +/* Allocates a hash table via kvmalloc. Can be used after boot. */ > Nit: kvcalloc? (Doesn't really matter much) Ah, right, forgot to fix this. I initially wanted to point out that early init allocates in memblock and late init in slab or vmalloc but then decided it's an unnecessary level of details. Will fix in v2. Thanks!