Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp489641imm; Thu, 21 Jun 2018 23:37:31 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKjIYjhckpOtIn/PkLWAFFfiV4tMJhSYFKHrx1QOB1H2Ci9DSGA3nNjpz4GYQXZzW1KWLmN X-Received: by 2002:a62:a30e:: with SMTP id s14-v6mr396769pfe.168.1529649451566; Thu, 21 Jun 2018 23:37:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529649451; cv=none; d=google.com; s=arc-20160816; b=i0OJOXyf31KFIuKjEsiHfrVqmNw8etU+trgEn6W/UL+VA6v7TkTNzPuzDRnYeaG1dI +mOI36U/mIzUb+iK17ExQd6rtk1Czzxe484eVo2uGQ9z3A6X7hSIaWT3jSNI1Ikv58HD 6zed5CTamo5re9NxaFRpAS1OXnj9XBDb9NOGehgFRSfxFZObnT+3T+yO+J0NkLtmIf41 NT2M9+yTk4mT1eHApPgUEBYLWxRdhEGH4EU4s8q6BY5hLVUCJI9H0cGWU2B3bOxXatr+ lJ4y6ZB5aUFp1t+ootoqTWeZFbxI0+SnyEQCnl6CVA+xZGi5U4rC9O2BLpVeO9n16F5c daGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=obcIMn8GlLD5d7ra3Uir/mhQzkMQsgW9ZfH8Ojq3ecQ=; b=0hyT/UIs/9Z101QN//JEm6FxnFXjWc5Rj2iC0jVqx+ubb5m7sVuuFzd/BTkBVYKY6y I8WGiGhPjKhyPDbY8kw3pdgmnFsfznlpeRZlZC26LPlec0GPi8DAy3vtSw0lbpIrnJzh qvASZA3xNZeoCO3+o86CTChzCsQj442TGG0G2NmIbfzoGxycMYh7qDf7yn5AtizWj0KI y0VGg2ee6GYtA+QVN/t85SjNooBPVswBykXqjA7YHsAT3/bo+2yJBOSG46ZU2wZd3Z6k l4vMgsmLQ/Sjw+Wiw6eWUxAqNMJlraJehzUPEZRvCsYGT6qeo4dTzib8LmmnYtVm5jgp qEFw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h5-v6si5449831pgn.660.2018.06.21.23.37.16; Thu, 21 Jun 2018 23:37:31 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751256AbeFVGg2 (ORCPT + 99 others); Fri, 22 Jun 2018 02:36:28 -0400 Received: from mx2.suse.de ([195.135.220.15]:43827 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750865AbeFVGg1 (ORCPT ); Fri, 22 Jun 2018 02:36:27 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext-too.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id E4B13AB39; Fri, 22 Jun 2018 06:36:25 +0000 (UTC) Date: Thu, 21 Jun 2018 23:36:13 -0700 From: Davidlohr Bueso To: NeilBrown Cc: akpm@linux-foundation.org, torvalds@linux-foundation.org, tgraf@suug.ch, herbert@gondor.apana.org.au, manfred@colorfullife.com, mhocko@kernel.org, guillaume.knispel@supersonicimagine.com, linux-api@vger.kernel.org, linux-kernel@vger.kernel.org, Davidlohr Bueso Subject: Re: [PATCH 1/4] lib/rhashtable: simplify bucket_table_alloc() Message-ID: <20180622063613.kcnkrfpyszphnf46@linux-r8p5> References: <20180621212825.3059-1-dave@stgolabs.net> <20180621212825.3059-2-dave@stgolabs.net> <87sh5fbbma.fsf@notabene.neil.brown.name> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="wctdmjbevz3t7pte" Content-Disposition: inline In-Reply-To: <87sh5fbbma.fsf@notabene.neil.brown.name> User-Agent: NeoMutt/20170912 (1.9.0) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --wctdmjbevz3t7pte Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline On Fri, 22 Jun 2018, NeilBrown wrote: >On Thu, Jun 21 2018, Davidlohr Bueso wrote: > >> As of ce91f6ee5 (mm: kvmalloc does not fallback to vmalloc for incompatible gfp flag), >> we can simplify the caller and trust kvzalloc() to just do the right thing. > >Hi, > it isn't clear to me that this is true. > With this change we lose __GFP_NOWARN and __GFP_NORETRY. > I doubt the NORETRY is particularly important as this is if it > isn't GFP_KERNEL, then it is GFP_ATOMIC which doesn't retry anyway. > However I cannot see why this patch won't result in warnings when the > kzalloc() fails. > What am I missing? You're right, it might be too agressive to get rid of the GFP_NOWARN for the callers that do GFP_ATOMIC. I'll send a new version of this patch along with a better changelog. Thanks, Davidlohr --wctdmjbevz3t7pte Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEdfFmxIPSv0bNouB8XTxsx2rK+gIFAlssmNMACgkQXTxsx2rK +gIwow/8CXXnyoNLG+1OxngkGkphoIlpPy3H+ghSa094MS3CBJfQ3lEkxejDODm4 Jk4TXOSXJaCUqler7JZJdL9O+SH/H258gbJiKMqbxSFqvD57BzyYN6eoI8sBT916 dUdJcpfEarEq+w8Zc1qpZu9rxEQdKrV8LnooOkUrSKY8u3aMbSDhffXp4tDP5FGz GHgg/VZPHsi4rZ91vbgl2FzOM92IDgp+eKLeTg6ncAxaf/uuoptFjSlPucfdVaqf lujkgBuBdmTCkHL6C0orZN5Onn/xXt0O5IfA/wfC/pkTdaya8619OC6ZVDZQbU2x DwWk1BtUqTaYuY9HkcPyrNNLxWFa0xsswRmcw9oawAiYyYYPvYzkf9IlxDNse6HH oGQ1iyEAvMjkou1BfGGyCTdrxl9lu0oH/YxvwTIGGpDGy7aF082IXa+A0P7UVOiW 2Miw8N5L4wE1tFfiQ+UQHXYzapBXQzl6rIPeibd0ruYFyCMhDGRxJBdbSLbnfqU2 PW4mdfaAMkLPdS9G6+cNg+yPGjfWMqJ2IgFe9CABAKKYbWroZT6fjYGa7/ypSQL7 F5SF2dAygxJV2dK+r0arGKwBYlSaVbtYhaJHz5+nIUZQ8IhwyLGxnAgM7xDicQNS qWiTbehv1V7Qut63bUgE3+pAKlO3SGNV/U7YDHf2fS28EIUu+FE= =mzhl -----END PGP SIGNATURE----- --wctdmjbevz3t7pte--