Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp941159ybb; Fri, 3 Apr 2020 14:54:31 -0700 (PDT) X-Google-Smtp-Source: APiQypJ/LWAN6JxlN3WfESkAF/z13czvVmcuNT/IM9+vje/BURwfbzugDt3uG1aLgDO78eXO5kJI X-Received: by 2002:a9d:544:: with SMTP id 62mr8276991otw.355.1585950870957; Fri, 03 Apr 2020 14:54:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585950870; cv=none; d=google.com; s=arc-20160816; b=C1Op3tCluWV8jSqKYQXtOXfZFObdtEPqNU1WhNeHNVbgf4pp7Q1xrq/CR08HlyCwNu 7ZYsWdsuqIdC738wXHkyDxj6So8ri7knuq40wBNI1sn7ZxqG+V0GZHhHxA5mr1CsHD4K fyc82OyajrtB2DyT5fXm45iJ7/yiKQ1YkYaGd6fDe82p8HDL8pViFvqO5IogLIHWgsTp 6nKJ9Agv7LHNrIJzQZXXSiHzNN3N+iZoHpKxGPERaMb6Vh3k5cI0NM7t/DvXUbG7smNy SwbPuJIjaA1rCh3WviUw72SwAGenCobdLsyj2jyTSxB53ceyRkBWgCs4BhPeLszOYlr9 QPBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=ZmykI1jF/AuRxj1O+Z6blTUcn3zOPYoue5aVA5PrXXE=; b=G09XJ9B46Y+QESBJf19I4g05x1LPcJFxn6uH2/zFLliZtG8CiW0GmjbUveV+b6k+3B KWY6QCkXb355ShQVmpn2VupnTp2XSXkgQsqz4YUzh/fy366M+uL7ObkV6K8azDKFQ5sN Up+/rvNqWZN+vUWzpHKLFztsZss46NSoiTFsPCG6O/B6onkHht9iNOLrZOo4pRsJGgsY vT2ndZUF1othTOqSqY4DnN8N+/AGQe5DgI0NtpJOWrGoB70/+SdcGvRrBXNMoUuANonq K77N3NX/njMtbE0/etCWbC7+qCmzVXHUGMWFVSfHLjh17TsH+VmxooUdWYLG2RshF6a/ 7p9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=j0Lbeu3C; 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=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a17si3944477oie.2.2020.04.03.14.54.18; Fri, 03 Apr 2020 14:54:30 -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=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=j0Lbeu3C; 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=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728254AbgDCVxh (ORCPT + 99 others); Fri, 3 Apr 2020 17:53:37 -0400 Received: from userp2120.oracle.com ([156.151.31.85]:52104 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726460AbgDCVxh (ORCPT ); Fri, 3 Apr 2020 17:53:37 -0400 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 033LrQuB096116; Fri, 3 Apr 2020 21:53:28 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=corp-2020-01-29; bh=ZmykI1jF/AuRxj1O+Z6blTUcn3zOPYoue5aVA5PrXXE=; b=j0Lbeu3CDslkmu4HCqlTJOy1hgXQsrQiAYqWZkENnEDPSZF1rvOW/jJGbxyw6xoEG1wG VqolF1XVb/NXWDrW3CctpSZUzeUA8H4WGYXRHbysFxXvrEbzxP7P1af3HOn9MTlcAUwN pE/HWWhTavvkI/c6ftbi+vPH6SiSQ7hD4/It5x2BWEF4T0GUvgbUKWz13WqI+Ov3523A xwAGFqig7rr3XM0IYC9vFaH+xM8kzJeit4lE0LCmpBHkbOoPF65ebxzLQoO31cut47Qn eXhi7246mItUtTIqzptZ/IHlbxgdPftC5nA/6Gdy2/kI227DHTY72KWHjKGljY0ZoqeD cQ== Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by userp2120.oracle.com with ESMTP id 303aqj3u9d-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 03 Apr 2020 21:53:28 +0000 Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 033LqSjn017230; Fri, 3 Apr 2020 21:53:27 GMT Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by aserp3030.oracle.com with ESMTP id 302g4y8mtb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 03 Apr 2020 21:53:27 +0000 Received: from abhmp0007.oracle.com (abhmp0007.oracle.com [141.146.116.13]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 033LrPUC020496; Fri, 3 Apr 2020 21:53:25 GMT Received: from [10.39.222.119] (/10.39.222.119) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 03 Apr 2020 14:53:25 -0700 Subject: Re: [PATCH] xen/blkfront: fix memory allocation flags in blkfront_setup_indirect() To: Juergen Gross , xen-devel@lists.xenproject.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Jens Axboe , Stefano Stabellini , Konrad Rzeszutek Wilk , stable@vger.kernel.org, =?UTF-8?Q?Roger_Pau_Monn=c3=a9?= References: <20200403090034.8753-1-jgross@suse.com> From: Boris Ostrovsky Message-ID: <1d67be51-776d-dd53-c5db-8b3539505f40@oracle.com> Date: Fri, 3 Apr 2020 17:53:14 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: <20200403090034.8753-1-jgross@suse.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-Language: en-US X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9580 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 bulkscore=0 suspectscore=0 mlxscore=0 spamscore=0 malwarescore=0 mlxlogscore=999 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2004030169 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9580 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 phishscore=0 clxscore=1011 malwarescore=0 impostorscore=0 mlxlogscore=999 spamscore=0 mlxscore=0 priorityscore=1501 lowpriorityscore=0 adultscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2004030169 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/3/20 5:00 AM, 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 lar= ge array allocation") > Cc: stable@vger.kernel.org > Signed-off-by: Juergen Gross Reviewed-by: Boris Ostrovsky