Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5008157ybl; Tue, 14 Jan 2020 01:52:15 -0800 (PST) X-Google-Smtp-Source: APXvYqxlkZHLdc9u08P8QvGHOKjTEAJCTgru/6wFw+kshRd91cvo5EqViHkhjvrv43OpK0mTikSA X-Received: by 2002:a05:6830:114f:: with SMTP id x15mr15737559otq.291.1578995535489; Tue, 14 Jan 2020 01:52:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578995535; cv=none; d=google.com; s=arc-20160816; b=KY6RVYcXqMyP5VrnRjgaptPNn8zMFVPgj9XI9Iebnffed6MCWxIc2793IpTID8g/R9 B3chMawy0oXjf4QMxfU1QvVjYCDbkrUuKLh0Ubxqc3rCTGW1/W8Mo2bjLW1jPT/Ivms+ kAS5TqZOBkjp5I1nRNsRAFUEjpbejexe7fc7LJ66ojoee1b27I/jSOFuvxyP5YSDeZxF QI7CIdZ2fYRykXdqalCdQlmbwY6wO043zhqz1IUKr06o3zeSJVzm5fa3yaGB2fz1hwLy /68S4xXK4fDeiw+7+HBQk67raduck/xpfOMPOGHBgWYV4j4d2dsIBNI0zMDWZo4Q4xVN 5VyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=pEjFsFpCypBmbTAAbsMBZocao2aRdb0v8F3qtUDClnU=; b=pCZrDsy6i3HjIuZV/RpQQfG1KW0GTz48Srue5qWeiBt+Iyekb25JqA8FWRD5Pg4PvO NA56IU8FgV+fcX48fioS1F/Beup5CIytGCeqKgdz7ct1yeyMmziUoqmFB5v1R9+iObuj JmYJ/y6o+Gxyt1Oq89XF61YR6UKPNYT0FCacRiCfzWTqr9l79FU6SvfPGwSCYLm2vD/e MFHD+FALgZc8KGLtAyVO1m8Mcjb5POO6RAmsutV5yp+oaQw+RUSPt8A7HVspLBcBuTl4 6IZ/JTrF97iszlLoZaWB0G+EehZDYLeynVhhWJz2JyeeLRGDdkdg2lSfmKWjV3yIMtd9 fTvg== ARC-Authentication-Results: i=1; mx.google.com; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f18si8390283otl.29.2020.01.14.01.52.04; Tue, 14 Jan 2020 01:52:15 -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; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729095AbgANJvB (ORCPT + 99 others); Tue, 14 Jan 2020 04:51:01 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:38613 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725842AbgANJvA (ORCPT ); Tue, 14 Jan 2020 04:51:00 -0500 Received: by mail-wr1-f65.google.com with SMTP id y17so11477473wrh.5; Tue, 14 Jan 2020 01:50:59 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=pEjFsFpCypBmbTAAbsMBZocao2aRdb0v8F3qtUDClnU=; b=mPUrjxnJuhzLL6qO+w/054KsvJgIDO7sUnVlRYpRV7Mz3vliCbrPKwx8aDVPAZJwmf vmTlJvYItaH4e/DXzOhZBf2VNHEdF/+YgFMWhVRbeo2EWJn/rgySIkedTegRC8lUsrHM Xas+L3urUcUoXwKIYThrnO3VfxwcbfTVrV9Yf1X8udgtp+90I3Rw5OBraQ39GZSjBOTg DPJUUofDdOfRJIyaNTkxiSsMUGLZTWqtoSvdxBCyr5kC5CUDTAdkQvlF09fqKqPaTy+K nwOWZ/2k+EBykmOvN2li4SJjwufyTcw30TTc8qlvZulpKCm6Jo6FL7ezU6K8fOg9UhM2 Dk3Q== X-Gm-Message-State: APjAAAXUrFzL++3bRG7fzGyEzMXlBWVhRj+GDhYA0LufIuWaa6EgN/2E luSq5RdmkQKJxQp678TkwMc= X-Received: by 2002:adf:a746:: with SMTP id e6mr24863095wrd.329.1578995459210; Tue, 14 Jan 2020 01:50:59 -0800 (PST) Received: from localhost (prg-ext-pat.suse.com. [213.151.95.130]) by smtp.gmail.com with ESMTPSA id b10sm19428113wrt.90.2020.01.14.01.50.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Jan 2020 01:50:58 -0800 (PST) Date: Tue, 14 Jan 2020 10:50:57 +0100 From: Michal Hocko To: Tianyu Lan Cc: David Hildenbrand , "lantianyu1986@gmail.com" , KY Srinivasan , Haiyang Zhang , Stephen Hemminger , "sashal@kernel.org" , "akpm@linux-foundation.org" , Michael Kelley , "linux-hyperv@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-mm@kvack.org" , vkuznets , "eric.devolder@oracle.com" , "vbabka@suse.cz" , "osalvador@suse.de" , Pasha Tatashin , "rppt@linux.ibm.com" Subject: Re: [EXTERNAL] Re: [RFC PATCH V2 2/10] mm: expose is_mem_section_removable() symbol Message-ID: <20200114095057.GK19428@dhcp22.suse.cz> References: <20200107130950.2983-1-Tianyu.Lan@microsoft.com> <20200107130950.2983-3-Tianyu.Lan@microsoft.com> <20200107133623.GJ32178@dhcp22.suse.cz> <99a6db0c-6d73-d982-58b3-7a0172748ae4@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.12.2 (2019-09-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon 13-01-20 14:49:38, Tianyu Lan wrote: > Hi David & Michal: > Thanks for your review. Some memory blocks are not suitable for hot-plug. > If not check memory block's removable, offline_pages() will report some failure error > e.g, "failed due to memory holes" and "failure to isolate range". I think the check maybe > added into offline_and_remove_memory()? This may help to not create/expose a new > interface to do such check in module. Why is a log message a problem in the first place. The operation has failed afterall. Does the driver try to offline an arbitrary memory? Could you describe your usecase in more details please? -- Michal Hocko SUSE Labs