Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754013AbcKUKh5 (ORCPT ); Mon, 21 Nov 2016 05:37:57 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:37247 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753624AbcKUKhz (ORCPT ); Mon, 21 Nov 2016 05:37:55 -0500 Subject: Re: [HMM v13 05/18] mm/ZONE_DEVICE/devmem_pages_remove: allow early removal of device memory To: =?UTF-8?B?SsOpcsO0bWUgR2xpc3Nl?= , akpm@linux-foundation.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org References: <1479493107-982-1-git-send-email-jglisse@redhat.com> <1479493107-982-6-git-send-email-jglisse@redhat.com> Cc: John Hubbard , Dan Williams , Ross Zwisler From: Anshuman Khandual Date: Mon, 21 Nov 2016 16:07:46 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 In-Reply-To: <1479493107-982-6-git-send-email-jglisse@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16112110-0052-0000-0000-000001EEC54B X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 16112110-0053-0000-0000-0000074243A6 Message-Id: <5832CE7A.3060802@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2016-11-21_09:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1609300000 definitions=main-1611210191 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 234 Lines: 6 On 11/18/2016 11:48 PM, Jérôme Glisse wrote: > HMM wants to remove device memory early before device tear down so add an > helper to do that. Could you please explain why HMM wants to remove device memory before device tear down ?