From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 34951C433F5 for ; Wed, 27 Oct 2021 01:18:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 13EAE60FE8 for ; Wed, 27 Oct 2021 01:18:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237213AbhJ0BUr (ORCPT ); Tue, 26 Oct 2021 21:20:47 -0400 Received: from out1.migadu.com ([91.121.223.63]:10252 "EHLO out1.migadu.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236966AbhJ0BUq (ORCPT ); Tue, 26 Oct 2021 21:20:46 -0400 Date: Wed, 27 Oct 2021 10:18:07 +0900 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1635297500; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=eC+dtU9OfBZl1jqB8KdIpIwy9ri5TDG2MDVAjdUs+Ys=; b=cAYCzMBwv9VqDWnvD0vLA5VHCYkdjNeAT6fHU9ROOFTg4Ky6SNXhCIJ+Toyesv10mFB91/ 0FF2SdgO6HTYhiRFMdbS7VvQGr5vRpjqlM/Jecz+BOUfJx7b7Pc0bQco5DbBNkS0vyh8zE NRlMDqc88MFndSXeHzmcZrTMmigv+vA= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Naoya Horiguchi To: Yang Shi Cc: Linux MM , Andrew Morton , David Hildenbrand , Oscar Salvador , Michal Hocko , Ding Hui , Tony Luck , "Aneesh Kumar K.V" , Miaohe Lin , Peter Xu , Naoya Horiguchi , Linux Kernel Mailing List Subject: Re: [PATCH v2 2/4] mm/hwpoison: remove race consideration Message-ID: <20211027011807.GA2707645@u2004> References: <20211025230503.2650970-1-naoya.horiguchi@linux.dev> <20211025230503.2650970-3-naoya.horiguchi@linux.dev> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: naoya.horiguchi@linux.dev Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 26, 2021 at 06:04:13PM -0700, Yang Shi wrote: > On Mon, Oct 25, 2021 at 4:06 PM Naoya Horiguchi > wrote: > > > > From: Naoya Horiguchi > > > > Now memory_failure() and unpoison_memory() are protected by mf_mutex, > > so no need to explicitly check races between them. So remove them. > > It seems this patch could be folded into patch #1. Some "unlock_mutex" > were added by patch #1 then they were removed by this patch > immediately, it seems a bit of a waste and this patch is actually the > by-product of patch #1. OK, I'll do this in the next post. Thanks, Naoya Horiguchi