Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1360620imm; Wed, 15 Aug 2018 16:27:49 -0700 (PDT) X-Google-Smtp-Source: AA+uWPy668OHIrh9VBoJ/29zBGoZIJRGtd1ASwpckf08igYCG/YrUvOgEm3sl0PhlJZjFwFvLebf X-Received: by 2002:a63:1a49:: with SMTP id a9-v6mr27530381pgm.423.1534375669602; Wed, 15 Aug 2018 16:27:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534375669; cv=none; d=google.com; s=arc-20160816; b=QGe0NnoK47jEDPba7YTRm8+RxV/TmjgePsPEAyLRjrWTwJYW3ai7DgYKelFG54N61I gjTN0gSNeLeDhvPYHLGDkRn4Q+M0NG7PVKdygjlryvkpHfDY/ClIOG6cgJaAHLU7+DFM 6MY2rwpcjBA4OMZ1LYB0TU5ZwONzq8jiyq60xx8xw01Sch5K/+/aTTmxSbaTjZDWgBt7 Q0CvtpQskZqHYk8F0kG9b2uMaf4X9BfV+UhGiwZggTDqAWluQ0N55RPIWC6xWhi62jVY wmXwZpks6Adm+1zS14FiY/kd30F6DlMvr0iZiR3H5hcFNJqglX95qK4m3hqQhU4+rgup 3K4A== 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:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :arc-authentication-results; bh=ZOQA7sr5TI2kj+3+cLc4o+2GG5q+wBqei6YU0ODnDj8=; b=QhQTLOlswBaQ49WJkFj2xZM+4vhXbFD38jJumkJxzUK0oQ6iS4eJQjtFo/iLyLQFRi 20WqjrEDy30v/z5bKAmvDVrwenX0WRyZJAA0auSh4FuCyDr+nU7dVX0FnPsD9KR4O92t 0yIaTt/0Pwrxv7OXXXZfSmjxWT1VHTTiM6xc3BwLlvZUy4gV24vqO6F9RQ1PBqF4qsiX DMLf/PyWqrfr+hjb65E4I1XePxEQjdDQ07taT8RvlWH/L+Z95wjnGAU5aluSNvSSLwK9 gnqNRa85x5MBEs+rUiKgTN13fikFOqdy/j/5Y4Cw3EeN/N38L6zrSkzxuLsPGHdlKYmm N3GQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ba10-v6si20026563plb.228.2018.08.15.16.27.34; Wed, 15 Aug 2018 16:27:49 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731049AbeHPBhr (ORCPT + 99 others); Wed, 15 Aug 2018 21:37:47 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:39156 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727075AbeHPBhr (ORCPT ); Wed, 15 Aug 2018 21:37:47 -0400 Received: from akpm3.svl.corp.google.com (unknown [104.133.9.92]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 1840540B; Wed, 15 Aug 2018 22:43:35 +0000 (UTC) Date: Wed, 15 Aug 2018 15:43:34 -0700 From: Andrew Morton To: Naoya Horiguchi Cc: linux-mm@kvack.org, Michal Hocko , xishi.qiuxishi@alibaba-inc.com, zy.zhengyi@alibaba-inc.com, linux-kernel@vger.kernel.org, Mike Kravetz Subject: Re: [PATCH v2 0/2] mm: soft-offline: fix race against page allocation Message-Id: <20180815154334.f3eecd1029a153421631413a@linux-foundation.org> In-Reply-To: <1531805552-19547-1-git-send-email-n-horiguchi@ah.jp.nec.com> References: <1531805552-19547-1-git-send-email-n-horiguchi@ah.jp.nec.com> X-Mailer: Sylpheed 3.6.0 (GTK+ 2.24.31; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 17 Jul 2018 14:32:30 +0900 Naoya Horiguchi wrote: > I've updated the patchset based on feedbacks: > > - updated comments (from Andrew), > - moved calling set_hwpoison_free_buddy_page() from mm/migrate.c to mm/memory-failure.c, > which is necessary to check the return code of set_hwpoison_free_buddy_page(), > - lkp bot reported a build error when only 1/2 is applied. > > > mm/memory-failure.c: In function 'soft_offline_huge_page': > > >> mm/memory-failure.c:1610:8: error: implicit declaration of function > > 'set_hwpoison_free_buddy_page'; did you mean 'is_free_buddy_page'? > > [-Werror=implicit-function-declaration] > > if (set_hwpoison_free_buddy_page(page)) > > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > is_free_buddy_page > > cc1: some warnings being treated as errors > > set_hwpoison_free_buddy_page() is defined in 2/2, so we can't use it > in 1/2. Simply doing s/set_hwpoison_free_buddy_page/!TestSetPageHWPoison/ > will fix this. > > v1: https://lkml.org/lkml/2018/7/12/968 > Quite a bit of discussion on these two, but no actual acks or review-by's?