Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3102973ybb; Mon, 6 Apr 2020 02:03:48 -0700 (PDT) X-Google-Smtp-Source: APiQypJKCBPxTn7GASxyLQag+69gADxIbI6xXA469HVkkRLSCLo4zEzV9YRiM4ItovCDKgI8665t X-Received: by 2002:aca:56c7:: with SMTP id k190mr12267451oib.127.1586163828639; Mon, 06 Apr 2020 02:03:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586163828; cv=none; d=google.com; s=arc-20160816; b=INBv57AnTwjqCSlHxE5EdSJaC9OweYe9mk5mvzAXWROXxGplmdLM5VDdcx4ReaQDGF XL4d4CnkbUGvW5uueYc1Qjgq6gafPXdLmieoaDw2FY/jweFaZlww35z2RmjagQXX/Aum T0pgKDUXrR8JuJRocBeF+xwIH7tazkzlddJQLJs0zXNHH3GiBFoy/9q0rI/qgw8Grzb/ 3lHKmSVttAlmucTu+aMP7G7pzqvEgvl0PCH8I3NzFnQHOj0SN6x8cKTiyBEhS1f6c2/N EuTmf3QmPK61KQHbxO4dGoe0HG4a6WHGHGJQDJVz9isvmPpuWmX/cMTERGef1gGPXQnS DLTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:ironport-sdr:dkim-signature; bh=Zf2cIUAryHJu4Q3K2Krp4hCgg+CrrP/m0xJnMyMmKuI=; b=xxKXN1PxWnjkyRs6WY/3t2eb4D8e974ZWQMh7Ibrq5Tn3kkfjUtlL4Agu6IUV0AVQ2 B9OOizc1sKqPxjAAa4zbIvKXFc61cY0wx9VEFkyT+RepeeATeVSVceJmnElLYLg/Ybl/ D2BUn+pMd2IduX3CWiTYe3rj5LxaOHfmhZN/YzT0FaxJ7j72qPsaxEAhRRlAXGL1/0Ej 420bStN4eAweVzsm2OlNNhHWnRvYNGUCjtb01/XABUdjXy/FGJuv9aT2du8ozAp3a9WV 5GGlIneSPFlbNiiUJrzYz6Ahtqsqr8qqIzoKMTZ/8mpq0MDyBpyfITNaKgLKWHcUD11s PUHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@citrix.com header.s=securemail header.b=hcunOytY; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=citrix.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i15si3817592ots.121.2020.04.06.02.03.34; Mon, 06 Apr 2020 02:03:48 -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; dkim=fail header.i=@citrix.com header.s=securemail header.b=hcunOytY; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=citrix.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726734AbgDFJDB (ORCPT + 99 others); Mon, 6 Apr 2020 05:03:01 -0400 Received: from esa1.hc3370-68.iphmx.com ([216.71.145.142]:51627 "EHLO esa1.hc3370-68.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726684AbgDFJDB (ORCPT ); Mon, 6 Apr 2020 05:03:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=citrix.com; s=securemail; t=1586163780; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=7NHbB9BsfudNyev+nKE/1EJEWNA2WPr4keczYxzGBKc=; b=hcunOytYs0OatDlmU2yrO/Pk1ju+t0Yp8734iREq5izwUR7qBuxklmRq OEOGHX1vy0W0gDHehTCjminoSX6XBx95fu/AsJBXTaCGhVJT+T9sPFFod yyoXA8lrSmLPVDpFa2W8jW5EhvaGWdasQXAOtSPusIzEHkr3HxEbS8Yvg A=; Authentication-Results: esa1.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none; spf=None smtp.pra=roger.pau@citrix.com; spf=Pass smtp.mailfrom=roger.pau@citrix.com; spf=None smtp.helo=postmaster@mail.citrix.com Received-SPF: None (esa1.hc3370-68.iphmx.com: no sender authenticity information available from domain of roger.pau@citrix.com) identity=pra; client-ip=162.221.158.21; receiver=esa1.hc3370-68.iphmx.com; envelope-from="roger.pau@citrix.com"; x-sender="roger.pau@citrix.com"; x-conformance=sidf_compatible Received-SPF: Pass (esa1.hc3370-68.iphmx.com: domain of roger.pau@citrix.com designates 162.221.158.21 as permitted sender) identity=mailfrom; client-ip=162.221.158.21; receiver=esa1.hc3370-68.iphmx.com; envelope-from="roger.pau@citrix.com"; x-sender="roger.pau@citrix.com"; x-conformance=sidf_compatible; x-record-type="v=spf1"; x-record-text="v=spf1 ip4:209.167.231.154 ip4:178.63.86.133 ip4:195.66.111.40/30 ip4:85.115.9.32/28 ip4:199.102.83.4 ip4:192.28.146.160 ip4:192.28.146.107 ip4:216.52.6.88 ip4:216.52.6.188 ip4:162.221.158.21 ip4:162.221.156.83 ip4:168.245.78.127 ~all" Received-SPF: None (esa1.hc3370-68.iphmx.com: no sender authenticity information available from domain of postmaster@mail.citrix.com) identity=helo; client-ip=162.221.158.21; receiver=esa1.hc3370-68.iphmx.com; envelope-from="roger.pau@citrix.com"; x-sender="postmaster@mail.citrix.com"; x-conformance=sidf_compatible IronPort-SDR: sfPgwiT0RDqtOpIx8BpsOCGBpAYrEzJ8byAffdFSgPLT9oxrM1pLGxV1YpTJCLmm+D5/KjNwTc 4UshXQsueyUHBq1QxYi9jubJ5prBv2AV1sK3XdnCfpQ5nvwcoAgTHamzh1kzvb9Msqal7Yq7ju qkhW17FkqJq6jUNmkeLMrG3DrtG4VCWd4pl8ZCS6WZTcR9wCZPK+yuKDj30clW5wGNYiAOrJNF kaoORMq+5pf6CxfxkMZjiwGVrinU52Ub1BjdqlJR6wPq5FyizUbdSQa9w4AHuCK67Qe5lhHDdp LIU= X-SBRS: 2.7 X-MesageID: 15445372 X-Ironport-Server: esa1.hc3370-68.iphmx.com X-Remote-IP: 162.221.158.21 X-Policy: $RELAYED X-IronPort-AV: E=Sophos;i="5.72,350,1580792400"; d="scan'208";a="15445372" Date: Mon, 6 Apr 2020 11:02:50 +0200 From: Roger Pau =?utf-8?B?TW9ubsOp?= To: Juergen Gross CC: , , , Boris Ostrovsky , Stefano Stabellini , Konrad Rzeszutek Wilk , Jens Axboe , Subject: Re: [PATCH] xen/blkfront: fix memory allocation flags in blkfront_setup_indirect() Message-ID: <20200406090250.GX28601@Air-de-Roger> References: <20200403090034.8753-1-jgross@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200403090034.8753-1-jgross@suse.com> X-ClientProxiedBy: AMSPEX02CAS02.citrite.net (10.69.22.113) To AMSPEX02CL02.citrite.net (10.69.22.126) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 03, 2020 at 11:00:34AM +0200, Juergen Gross wrote: > Commit 1d5c76e664333 ("xen-blkfront: switch kcalloc to kvcalloc for > large array allocation") didn't fix the issue it was meant to, as the > flags for allocating the memory are GFP_NOIO, which will lead the > memory allocation falling back to kmalloc(). > > So instead of GFP_NOIO use GFP_KERNEL and do all the memory allocation > in blkfront_setup_indirect() in a memalloc_noio_{save,restore} section. > > Fixes: 1d5c76e664333 ("xen-blkfront: switch kcalloc to kvcalloc for large array allocation") > Cc: stable@vger.kernel.org > Signed-off-by: Juergen Gross Acked-by: Roger Pau Monné Thanks!