Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp690636rdh; Thu, 23 Nov 2023 15:59:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IEKhA9aDg0aiiL8nzrRmb3sOF2efvae9Nz8iOauSGO/r5JXw42qKeD8sciFKMJKr3mr0GN6 X-Received: by 2002:a05:6a20:3caa:b0:189:ca96:aa1b with SMTP id b42-20020a056a203caa00b00189ca96aa1bmr1309247pzj.53.1700783947442; Thu, 23 Nov 2023 15:59:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700783947; cv=none; d=google.com; s=arc-20160816; b=fNHNd0hvU2Oi4c3psdOUPwsJXdrTNUnTFw4QicbgMz2bxBMIlNtMRLBrQXNav3fO1g kcI/E7SXNKSCbFgk6qAPm6Rx7sDkCN2B6YkOUT61XI95YJCAe6EhLE/3lyEL8t0UssPU 1VDKA7qTt6rKJ+nYRQXi1rjK9zkU7MV+nopCxwX/zbt5zvXUnbqdKmA5FJZqwi8tR8mi BGBJcG5PULoQSCYqDFMWW7BfxQTc+Cx6NMxXcJwIBUXSeJMyaZ2keEHHuBKc46w7eKFR JEzJzEHmHsmkHkXUDyYoMxKRqoYGxsCRWUcVia5kPKjiNMGiKaqK9Ft7EXIiTTURL8Pf i8/A== 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:dkim-signature:date; bh=uXzEssVckVuprVJisGRjCNWWyovdjXQldqf773mP1Pk=; fh=F7fBit6Y8dJvOn4NuGxiDCKuUfvcCB+/k3pgo+a4sZw=; b=BMhVHEqUhNW7ORJvm3wkpU5QxsOmDhrSTOTDBmEf3ufLUTel/ikuxrjwOvIdC2zfgl zwfFyHB3mwqEHiCAH5X+kGyLDc2q5kBjcGib55aEIvD42QWF0L7MwAMoQdx5w5hh5kh5 u7bbr5SCdKEh90WN70jowj0ikkZjXnTyBC84dBbG6CMNzFRQuRr+JkRhBOPAkCDePi8V cLXcbkvKp6OKwwdmllydN6JYAMStj41zVL1kBpX4OIuW6QouiPDb3n1+iuHoRYq1q6XP D6oqSjXLtpJjIv6ud/s4r4nH8nb7Y58SVYTtKI/pofFTefK+PSnQYHJyNTGg4jZ/muyu tTvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=kpdKfBK+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id pw4-20020a17090b278400b0027d28735890si1915211pjb.1.2023.11.23.15.59.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 15:59:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=kpdKfBK+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id EAB0B82AA658; Thu, 23 Nov 2023 15:59:04 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229711AbjKWX6n (ORCPT + 99 others); Thu, 23 Nov 2023 18:58:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229453AbjKWX6m (ORCPT ); Thu, 23 Nov 2023 18:58:42 -0500 Received: from out-183.mta0.migadu.com (out-183.mta0.migadu.com [91.218.175.183]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 48B61D54 for ; Thu, 23 Nov 2023 15:58:46 -0800 (PST) Date: Thu, 23 Nov 2023 18:58:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1700783924; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=uXzEssVckVuprVJisGRjCNWWyovdjXQldqf773mP1Pk=; b=kpdKfBK+m3STIxKMbE73XXnpN+UWlR2h6i9nrBq9639x7utElzFyzp9zWUVy/paOuQ5Nvc Od4PlteSRmzlBXjNYuWAS/G4pCpocAGDb2faLXg6k4GlFM5jZXq19qlwkNe+Bdv2sVbSoz dWSNcZ3s0g6p82+l396/YMGXkHoLC7o= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Kent Overstreet To: Herbert Xu Cc: linux-kernel@vger.kernel.org, Thomas Graf Subject: Re: [PATCH] rhashtable: Better error message on allocation failure Message-ID: <20231123235840.76nk3grth2sqmonc@moria.home.lan> References: <20231122233225.178910-1-kent.overstreet@linux.dev> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Migadu-Flow: FLOW_OUT X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Thu, 23 Nov 2023 15:59:05 -0800 (PST) On Thu, Nov 23, 2023 at 04:32:47PM +0800, Herbert Xu wrote: > On Wed, Nov 22, 2023 at 06:32:16PM -0500, Kent Overstreet wrote: > > Memory allocation failures print backtraces by default, but when we're > > running out of a rhashtable worker the backtrace is useless - it doesn't > > tell us which hashtable the allocation failure was for. > > > > This adds a dedicated warning that prints out functions from the > > rhashtable params, which will be a bit more useful. > > > > Signed-off-by: Kent Overstreet > > Cc: Thomas Graf > > Cc: Herbert Xu > > --- > > lib/rhashtable.c | 9 +++++++-- > > 1 file changed, 7 insertions(+), 2 deletions(-) > > Acked-by: Herbert Xu > > However, you'll need to repost this via netdev@vger.kernel.org for > it to be merged. Thanks!