Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp47096ybv; Wed, 19 Feb 2020 16:07:51 -0800 (PST) X-Google-Smtp-Source: APXvYqwMyeSMTSvCQ3QexgdpuV1GNf47iJyZmd5U9XEa3Y9gsYXDiqxz4ZcSdLlJIzpVBtWRK3oi X-Received: by 2002:a9d:7f11:: with SMTP id j17mr22952415otq.281.1582157271610; Wed, 19 Feb 2020 16:07:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582157271; cv=none; d=google.com; s=arc-20160816; b=M1fRQcRM/vv8denY99OcmPEism+QezXARrA80C6aNuAeIjmGqDP31IdpI2z7Xqyi6j zZsaho2YbSCX9Tapy9Jind0AfA5OJSvHOZusgWpbunCqhCjdOwnz7QT117zfdOo1n1vT DRy9kICJjWe75Hvx8NMSdEWnfocRNHQ/74G+oi7l/dlpVdFxLL/1P8IFQDO8Rw3cQahg di3Arxv2y6ABNqa9UdZzc2Qa9iwA6RZEshUKcn3fSVouegbJErrSLB1+LLRRo8/LUS/R /fqk3eIKwXobymE1HmCTgPBXD6zR4oCPfSRINQSS8VB0j1Pv8CtRzwBu/0gztUdiZOrm YyJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=3aT7epndnvHOqxfRhKxEGkq1oPJFl97KJ9zSmkPfAGI=; b=GxrgW4eiDNvE8awGesupWXqY6kaI6Vd3y6VDwG61RpqGlKK8+N+vqfykV+T5t8LhDm +z/DdSJB7VbeOWR8nYmJSxKbaV62vv+WAtrG1dj8933GhVPXLLeWKqstiq10LFN5//U5 n1KLV9WeGuumHrSYCfvb4CLUx2DxUf6CA2jyQfyIscZ0fx+7VAvsFEuD7iFezEW411uc sWPzogbKB+sqQFrqHGj9LRBaV9UMgFg0dF3ZPoEpsdzNVnzAHdZ6dWQH9LbHlFw07iaD KflI6dlIL4aHRzyXzE4P/LUJU4RdWzRFglMHa/K9A2X87iQ+i0VH9mhC4yYzjO5qRaJ8 Otkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=VuM35CN9; 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 l17si720978otq.59.2020.02.19.16.07.39; Wed, 19 Feb 2020 16:07:51 -0800 (PST) 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=VuM35CN9; 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 S1726751AbgBTAHZ (ORCPT + 99 others); Wed, 19 Feb 2020 19:07:25 -0500 Received: from userp2120.oracle.com ([156.151.31.85]:48678 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726647AbgBTAHY (ORCPT ); Wed, 19 Feb 2020 19:07:24 -0500 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 01K04BQT194613; Thu, 20 Feb 2020 00:07:19 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=3aT7epndnvHOqxfRhKxEGkq1oPJFl97KJ9zSmkPfAGI=; b=VuM35CN9btm1xWOt5CyZnr6lyZBvCWi8B26oHpcT0aJAMPC5hYY94SGZ+ojmod41gLsK L/B1vBC/TaKiY0o1/TUUW9VDjbrnbZtz2ymx7M/N+O7BaOckY1US6/4kfHn/9ZQp7aAV HNeqnPubR6HgUN6G/ZDWO3X9Er3j2lnQJpBpF8L3T3BQecKV9Oea5VghtKSS5mmzxacS B01FgInrXptM+Lx3vtG/6JhcORzLA9Lst5ULjuY4oRtH4TlWPSxs6uILxvuN3MOGixu7 cN+AKZiY3DGPyhrzPQ9PvBump/U7MJcdwLkU/xuLnHU31n5soeDpA1eNxq8W9h2RrjE4 EA== Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by userp2120.oracle.com with ESMTP id 2y8ud16h7c-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 20 Feb 2020 00:07:19 +0000 Received: from pps.filterd (aserp3020.oracle.com [127.0.0.1]) by aserp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 01K02SNm181708; Thu, 20 Feb 2020 00:07:18 GMT Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserp3020.oracle.com with ESMTP id 2y8ud8pbrv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 20 Feb 2020 00:07:18 +0000 Received: from abhmp0008.oracle.com (abhmp0008.oracle.com [141.146.116.14]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id 01K07HtU002816; Thu, 20 Feb 2020 00:07:18 GMT Received: from [192.168.1.206] (/71.63.128.209) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 19 Feb 2020 16:07:17 -0800 Subject: Re: [PATCH] hugetlb: Remove check_coalesce_bug debug code To: Mina Almasry Cc: David Rientjes , Shakeel Butt , Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org References: <20200219233610.13808-1-almasrymina@google.com> From: Mike Kravetz Message-ID: Date: Wed, 19 Feb 2020 16:07:16 -0800 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: <20200219233610.13808-1-almasrymina@google.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9536 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 mlxlogscore=999 phishscore=0 suspectscore=0 mlxscore=0 malwarescore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2001150001 definitions=main-2002190175 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9536 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 lowpriorityscore=0 malwarescore=0 suspectscore=0 bulkscore=0 spamscore=0 priorityscore=1501 phishscore=0 impostorscore=0 mlxlogscore=999 clxscore=1015 adultscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2001150001 definitions=main-2002190175 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/19/20 3:36 PM, Mina Almasry wrote: > Commit b5f16a533ce8a ("hugetlb: support file_region coalescing > again") made changes to the resv_map code which are hard to test, it > so added debug code guarded by CONFIG_DEBUG_VM which conducts an > expensive operation that loops over the resv_map and checks it for > errors. > > Unfortunately, some distros have CONFIG_DEBUG_VM on in their default > kernels, and we don't want this debug code behind CONFIG_DEBUG_VM > and called each time a file region is added. This patch removes this > debug code. I may look into making it a test or leave it for my local > testing. > > Signed-off-by: Mina Almasry > > Cc: David Rientjes > Cc: Mike Kravetz > Cc: Shakeel Butt > Cc: Andrew Morton > Cc: linux-mm@kvack.org > Cc: linux-kernel@vger.kernel.org > > Fixes: b5f16a533ce8a ("hugetlb: support file_region coalescing again") Thanks! Reviewed-by: Mike Kravetz The review also applies to the original patch with the removal of this code. -- Mike Kravetz