From patchwork Mon Jan 14 09:54:38 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Aneesh Kumar K.V" X-Patchwork-Id: 10761859 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 41DFF1515 for ; Mon, 14 Jan 2019 09:55:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2DAD528A75 for ; Mon, 14 Jan 2019 09:55:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 220C128ADD; Mon, 14 Jan 2019 09:55:18 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AD28928A75 for ; Mon, 14 Jan 2019 09:55:17 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id D9AF88E0009; Mon, 14 Jan 2019 04:55:15 -0500 (EST) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id D22398E0002; Mon, 14 Jan 2019 04:55:15 -0500 (EST) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B4FDB8E0009; Mon, 14 Jan 2019 04:55:15 -0500 (EST) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-qt1-f200.google.com (mail-qt1-f200.google.com [209.85.160.200]) by kanga.kvack.org (Postfix) with ESMTP id 888508E0002 for ; Mon, 14 Jan 2019 04:55:15 -0500 (EST) Received: by mail-qt1-f200.google.com with SMTP id d31so24190531qtc.4 for ; Mon, 14 Jan 2019 01:55:15 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-original-authentication-results:x-gm-message-state:from:to:cc :subject:date:in-reply-to:references:mime-version :content-transfer-encoding:message-id; bh=UkagOMjtG9PuXwApHP2ECkjbrKbgRGHdbSDAnmZlXTg=; b=l1SMwU+3VYVn+tp9J1cApgtqGZT33HI8SAZ/3ecn+amp7GkOH6C7Qs/tHK8gB8YvI7 tQzjEew2iPVB2fSEIo1f5S/adghBdBK8NBaT8os8iqJEpDi/RvktvtLqG4rQs2IQ90rY O3pFXwJkGSPLMVlLsQgxf4SUimGGMvwzUDIWXqoiaT0K0P5+JWyJJ+r3/0dRpyqcUeJE rtv6GYRDF26oyAkza6kjUs7/sSngld4Vo/fSp97PK7qZH3kO/keO0qtpZYijk9J8eJlN VeDGM2jAa5DTT1GoFOpfNkhqljWXpdjrSnFQYuAczmBSGMcR/A39BCXdFUJ0ZFk2scvC s1FA== X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of aneesh.kumar@linux.ibm.com designates 148.163.158.5 as permitted sender) smtp.mailfrom=aneesh.kumar@linux.ibm.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com X-Gm-Message-State: AJcUukdWR1ir/aiZOuMEKMVxehgW6+hODtzyO24AiIjDNIu5KtBPxFLK GRTCo7h9LZEEmsUb0mQ+K77blUaJ7BAFWaJBjf9A97sxIJmc7U4+OcPbrsaod3GS5SdA8Ay9bjm vHU9zLd7XNAQZy5zWshJS3KoNn/TY5d7M480RCzDvp5UkWO9nYP+LiNGkFYNEHWddSQ== X-Received: by 2002:a0c:be18:: with SMTP id k24mr23614889qvg.192.1547459715329; Mon, 14 Jan 2019 01:55:15 -0800 (PST) X-Google-Smtp-Source: ALg8bN5Ws97AQ8yMgXRYrGbr8CtbKvDUG7Eg2984tKsjuhpdxw+MgI3QOptgJSH5bDDE6fxPOdOn X-Received: by 2002:a0c:be18:: with SMTP id k24mr23614874qvg.192.1547459714760; Mon, 14 Jan 2019 01:55:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547459714; cv=none; d=google.com; s=arc-20160816; b=I8oSIAzmwgv3/fuuPXePIZl2hKB1rXWRCQysrPyZgSx/T5s9Fmu/iyZaSp/n9evkYz KvpFRIeUDsUHajlGkUgTkj9fmijojSX8yb2e2z5r7UaQnU9bnqimr6sTrJIu5ggY3HUU zctWk2HGPDP/Wx+N40RO4qsyXrfJM9KAQDf5dc9WcEuBkx1fVmL7CGnKGKUGQwYB1Y7l Hew6LaQ+Uein6FddI99WyHAkRO0dKBzonAB0sijvei3uQeg3+RMBG3MYWKk/pnlPkch2 6U+MVl7ki0j1mJziB+5P4YR+xO7FZVLVezd/8/uchHmsUJ7NLwIGv+PB2GaAeJ6pIazs XsMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:content-transfer-encoding:mime-version:references :in-reply-to:date:subject:cc:to:from; bh=UkagOMjtG9PuXwApHP2ECkjbrKbgRGHdbSDAnmZlXTg=; b=wyeJlbabWtGTzap6PqEaKC//pOg+cBoKDZOUn67o3bd9apOh+1RU05IjLAW4MKTNIo +YT82oV+Uw29njwoGvoMPg/X3PH1nklglapEcyi5WHI7XkVsMdll+A79OwVNLKa4ZlOb GuC5ubhxwXhNZPIvaGe+LteW/uUDMrFyAxgsP8gZYAtiqlK81/vFcm+bwJa+RdsQwcnZ n/u8HQz3mcDOs9vzi1G4sQxd13p85mdIM/t2LE6MowCiQL4Q5oO6sQLZPTiNClI6xwcm KmH813QrfKv/TgULmqh/fQbQlFgBiq2rm0FqDFhCjcYWaTSPlV/FphVJ41NQURVu/r8r sj5Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of aneesh.kumar@linux.ibm.com designates 148.163.158.5 as permitted sender) smtp.mailfrom=aneesh.kumar@linux.ibm.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com. [148.163.158.5]) by mx.google.com with ESMTPS id f1si7385472qkc.106.2019.01.14.01.55.14 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 14 Jan 2019 01:55:14 -0800 (PST) Received-SPF: pass (google.com: domain of aneesh.kumar@linux.ibm.com designates 148.163.158.5 as permitted sender) client-ip=148.163.158.5; Authentication-Results: mx.google.com; spf=pass (google.com: domain of aneesh.kumar@linux.ibm.com designates 148.163.158.5 as permitted sender) smtp.mailfrom=aneesh.kumar@linux.ibm.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: from pps.filterd (m0098417.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id x0E9mdEJ074237 for ; Mon, 14 Jan 2019 04:55:14 -0500 Received: from e11.ny.us.ibm.com (e11.ny.us.ibm.com [129.33.205.201]) by mx0a-001b2d01.pphosted.com with ESMTP id 2q0n1fyy94-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 14 Jan 2019 04:55:14 -0500 Received: from localhost by e11.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 14 Jan 2019 09:55:13 -0000 Received: from b01cxnp23032.gho.pok.ibm.com (9.57.198.27) by e11.ny.us.ibm.com (146.89.104.198) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Mon, 14 Jan 2019 09:55:10 -0000 Received: from b01ledav005.gho.pok.ibm.com (b01ledav005.gho.pok.ibm.com [9.57.199.110]) by b01cxnp23032.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x0E9t99e20119786 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 14 Jan 2019 09:55:09 GMT Received: from b01ledav005.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 2F76CAE062; Mon, 14 Jan 2019 09:55:09 +0000 (GMT) Received: from b01ledav005.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B1C86AE060; Mon, 14 Jan 2019 09:55:06 +0000 (GMT) Received: from skywalker.in.ibm.com (unknown [9.124.31.106]) by b01ledav005.gho.pok.ibm.com (Postfix) with ESMTP; Mon, 14 Jan 2019 09:55:06 +0000 (GMT) From: "Aneesh Kumar K.V" To: akpm@linux-foundation.org, Michal Hocko , Alexey Kardashevskiy , David Gibson , Andrea Arcangeli , mpe@ellerman.id.au Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, "Aneesh Kumar K.V" Subject: [PATCH V7 5/5] testing Date: Mon, 14 Jan 2019 15:24:38 +0530 X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190114095438.32470-1-aneesh.kumar@linux.ibm.com> References: <20190114095438.32470-1-aneesh.kumar@linux.ibm.com> MIME-Version: 1.0 X-TM-AS-GCONF: 00 x-cbid: 19011409-2213-0000-0000-0000033D1069 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00010402; HX=3.00000242; KW=3.00000007; PH=3.00000004; SC=3.00000274; SDB=6.01146284; UDB=6.00597006; IPR=6.00926570; MB=3.00025118; MTD=3.00000008; XFM=3.00000015; UTC=2019-01-14 09:55:13 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19011409-2214-0000-0000-00005CF72F86 Message-Id: <20190114095438.32470-7-aneesh.kumar@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-01-14_05:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=781 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1901140081 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000001, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: X-Virus-Scanned: ClamAV using ClamSMTP --- mm/gup.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mm/gup.c b/mm/gup.c index 6e8152594e83..91849c39931a 100644 --- a/mm/gup.c +++ b/mm/gup.c @@ -1226,7 +1226,7 @@ static long check_and_migrate_cma_pages(unsigned long start, long nr_pages, * be pinning these entries, we might as well move them out * of the CMA zone if possible. */ - if (is_migrate_cma_page(pages[i])) { + if (true || is_migrate_cma_page(pages[i])) { struct page *head = compound_head(pages[i]); @@ -1256,6 +1256,7 @@ static long check_and_migrate_cma_pages(unsigned long start, long nr_pages, for (i = 0; i < nr_pages; i++) put_page(pages[i]); + pr_emerg("migrating nr_pages"); if (migrate_pages(&cma_page_list, new_non_cma_page, NULL, 0, MIGRATE_SYNC, MR_CONTIG_RANGE)) { /* @@ -1274,10 +1275,11 @@ static long check_and_migrate_cma_pages(unsigned long start, long nr_pages, nr_pages = get_user_pages(start, nr_pages, gup_flags, pages, vmas); if ((nr_pages > 0) && migrate_allow) { drain_allow = true; - goto check_again; + //goto check_again; } } + pr_emerg("Returning with %ld\n", nr_pages); return nr_pages; } #else