Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp815079pxb; Tue, 12 Apr 2022 14:12:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxtCQvkOYzm2anxA6D0SNdt1tSUT/6CayvCH2kXqEnnsYr28PNXO8pC/n6xyvIH5lHLLTvd X-Received: by 2002:a17:902:d506:b0:158:7a91:d066 with SMTP id b6-20020a170902d50600b001587a91d066mr8244838plg.102.1649797957775; Tue, 12 Apr 2022 14:12:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649797957; cv=none; d=google.com; s=arc-20160816; b=WiUDuNWqZ9rAeVZdLyRfdzehT43+Xo1et4lswHmQ68AC8pX6/vLV24HE8MV/YSpSiT LfS1iJcQWTEuVjM9YB8mNPRFOxzvlFnaeRgnRJNhxKubv1G6DvEU9OQrL387Fi4SX30+ y+Ajwnm30VWLC0eFujFYbLAp96FFrgpGb75ayznzMKZbvPwblWV4XGYnOrZIYcuIjib0 GO1gxXk4sbpE5xpLi8LI1kpXQXCW7FjGeRuXnjV+4cNJY0XF2YF/umvwEHLop9NkyBza 6f6qOhTI0SN7GDh8epTWbhLEsgCDQsqXYfKmt+yS1LUV+LDo4ehlKJpntDD2wrrc3ots p2tg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=CULpciz6XqhWsGu1H7OLmrh/Jt8RsePNfnP35TeiXtA=; b=SOec08m53Uz8QsyHiFDNjCC5y0OFSVBza55DGoB2QwJZm7AS1S3q2UnoGNobRs868b YLqVh09sbRTjA3Ht/SUsvVFs1zeFARe34+q9QBeQOh633uzyyA55eVJC0Cj70A6+/nk8 8oPRXqc4CfpoCDLoUpGI33v7NfnQ9BeYlYqqOQEhId6nrjW8yCThx7WQtz4MyXJC8XeK R1f38zymkX361Ce0BKwq3hNusU5+slBjPEY5C08Y1ze6L9vWddcR9abX1W506Q4x7SEV 2Xs9S0pu0BKzBpR97xPjl0PcGRGDmrEVuClbjAsywLG5BVtZ8CMb4Xa2q6cqvHUa6ZeL g/NA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id f9-20020a636a09000000b003847a033b69si3742618pgc.296.2022.04.12.14.12.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Apr 2022 14:12:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 205D0E7F54; Tue, 12 Apr 2022 13:28:20 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349671AbiDLQ6J (ORCPT + 99 others); Tue, 12 Apr 2022 12:58:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59602 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234206AbiDLQ6H (ORCPT ); Tue, 12 Apr 2022 12:58:07 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3CDED5F4E7 for ; Tue, 12 Apr 2022 09:55:49 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id A911DB81F14 for ; Tue, 12 Apr 2022 16:55:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BB210C385A1; Tue, 12 Apr 2022 16:55:43 +0000 (UTC) Date: Tue, 12 Apr 2022 17:55:40 +0100 From: Catalin Marinas To: Vlastimil Babka Cc: Hyeonggon Yoo <42.hyeyoo@gmail.com>, Ohhoon Kwon , Christoph Lameter , Pekka Enberg , David Rientjes , Joonsoo Kim , Andrew Morton , Roman Gushchin , JaeSang Yoo , Wonhyuk Yang , Jiyoup Kim , Donghyeok Kim , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] mm/slab_common: move dma-kmalloc caches creation into new_kmalloc_cache() Message-ID: References: <20220410162511.656541-1-ohkwon1043@gmail.com> <9b02d27a-b4c0-acfa-dc0b-ac4912c1d3e6@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9b02d27a-b4c0-acfa-dc0b-ac4912c1d3e6@suse.cz> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 On Mon, Apr 11, 2022 at 05:31:51PM +0200, Vlastimil Babka wrote: > On 4/11/22 13:07, Hyeonggon Yoo wrote: > > On Mon, Apr 11, 2022 at 01:25:11AM +0900, Ohhoon Kwon wrote: > >> @@ -898,20 +900,6 @@ void __init create_kmalloc_caches(slab_flags_t flags) > >> > >> /* Kmalloc array is now usable */ > >> slab_state = UP; > >> - > >> -#ifdef CONFIG_ZONE_DMA > >> - for (i = 0; i <= KMALLOC_SHIFT_HIGH; i++) { > >> - struct kmem_cache *s = kmalloc_caches[KMALLOC_NORMAL][i]; > >> - > >> - if (s) { > >> - kmalloc_caches[KMALLOC_DMA][i] = create_kmalloc_cache( > >> - kmalloc_info[i].name[KMALLOC_DMA], > >> - kmalloc_info[i].size, > >> - SLAB_CACHE_DMA | flags, 0, > >> - kmalloc_info[i].size); > >> - } > >> - } > >> -#endif > >> } > >> #endif /* !CONFIG_SLOB */ > > > > Reviewed-by: Hyeonggon Yoo <42.hyeyoo@gmail.com> > > Thanks. > Added to: > https://git.kernel.org/pub/scm/linux/kernel/git/vbabka/slab.git/log/?h=for-5.19/refactor > > > BTW this patch may conflict with [1] (not merged yet) > > > > [1] https://lore.kernel.org/linux-mm/20220405135758.774016-9-catalin.marinas@arm.com/ > > FYI Catalin, might want to base v2 on the above once the crypto side is > solved. At cursory look it shouldn't be a significant conflict. Thanks for the heads-up. I did wonder why this was a separate loop. -- Catalin