Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1081720rdb; Mon, 19 Feb 2024 03:53:01 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWY4uvJeilmTzRbp66h5XChGnVCn8ne7AQ0dpEuxNfnJcV0ScY7rhBCQYMOgIeuG3iiGksmbqtVVEUef4nHjwo0cRJM6b0kb894EKn26w== X-Google-Smtp-Source: AGHT+IEhxhenx54dkwNDyYOlo7Vihqddl2tySXNmZ3Q3mVvEqGWHnanZTzypjBEufyjm9feGm+ou X-Received: by 2002:a05:6a00:1ca3:b0:6e0:f975:e920 with SMTP id y35-20020a056a001ca300b006e0f975e920mr12265455pfw.22.1708343580868; Mon, 19 Feb 2024 03:53:00 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708343580; cv=pass; d=google.com; s=arc-20160816; b=WMBBV9tvbL9ZkL+ZRZR2xYakNYUbWbQ086OybXjvtbgHu3XgeQBN7ZToQAko1P7hD8 8kqCipTZXdbf7CxlI57VLhuLmyG+xJFZD8QRz/Jg9ULLr0hNFXTYxnpBLB8pvBKtVqVP vsBvgeE1kW5io9n7CeAjFG4VxYKpM6GUwOO8U8OCJOLBesoTF/wfD8OCT2iXRHlI9qAk jCDFLcziFzOkMEmZAmS6R/4z6hO4H4SGOZUvpvkTyatgsfKmz4cUcXqt8Ot3CkE/pY8X tijEcCqSuxm52kTD7SSX4YJdaFQRvBw00OFSKcOOkkFF0hPneNgN1n9JxDXzbF7A9CAw cHLg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:organization:references :in-reply-to:message-id:subject:cc:to:from:date; bh=Xb0iztGTg4Su96kk7Gz7ZN81ETEkqabyV6ATpsLCVVA=; fh=1fBYa+8Pml540vLlrdjBsXlvSPmHDDPa+wyK108iM94=; b=oyVbVN0dBI45z9QFgaVaDAa9RIQd1PKOAbukWUYQGMCsxyy6BgHrAN0JTdvtQeAdhj dbieQIGC3YBSBQvSWMVqqVp1Qpa5NIqvpOf2JKDghXY4QF5mx4K/OAd3GUp8014oOmf4 9GGEM/1wiW0s1WU7NtV7nj2Zhll4OqWgvVqthCuWDe1YLOgIUurY4t4yrEhEh37YpjwW Fxp7WE6ZRzOooRCwG7A7ZFZITYvr/olTDK8obeSF927Mffx19KQf6OHTFN6/oAVUMy8t wSOMfEb+8XpMxbmFEQqyr3U0NAheYpty/0VqqnuBC7u9L2U010GqFUVXfLC+pr6h3w6O iFGw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-71253-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71253-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id cm22-20020a056a020a1600b005dc918631c7si4404161pgb.134.2024.02.19.03.53.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 03:53:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-71253-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-71253-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71253-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 930D5288471 for ; Mon, 19 Feb 2024 11:53:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 43C072E40C; Mon, 19 Feb 2024 11:52:55 +0000 (UTC) Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 89FF12E3EB; Mon, 19 Feb 2024 11:52:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.176.79.56 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708343574; cv=none; b=DBtWaW3ZoCsQkr9OPg0EL4R7EkN2gxQQ4UbsJymfrdCGB3T9bpLJx5fYGQE73+mf7mf4l8IfimnPEesOey1Bos0jhId5mw2kzDhLG7OeF4v0xQFKZBceEV4vUs4U+Vks4m36Xe0n/XEetsjljqt4zzRpFrm1T2zzRiJhguqCONI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708343574; c=relaxed/simple; bh=fyhYnzmCxnUGFyoUnOzjkFIRTTVgFqvaB5JpETxx/6E=; h=Date:From:To:CC:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=MiuJ0qqaYJceTLZ8OSXiHd53k2sLvNpKZyj7Mqh9Nghp6DaFkOepp9CNjptrTbWguHtVUInJP8HxShsdY3ECif1ib4GjBvu0qi0irJ5WELIi/Kpux6ijA0q54KSlQCWJMxyhB6BGPQa0Qc9bnvIgzqEM/qch0Cbx71CmZADvM3E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=Huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=185.176.79.56 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=Huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.18.186.31]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4Tdgms2cjFz6K9BL; Mon, 19 Feb 2024 19:49:17 +0800 (CST) Received: from lhrpeml500005.china.huawei.com (unknown [7.191.163.240]) by mail.maildlp.com (Postfix) with ESMTPS id 79419140EDF; Mon, 19 Feb 2024 19:52:50 +0800 (CST) Received: from localhost (10.202.227.76) by lhrpeml500005.china.huawei.com (7.191.163.240) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Mon, 19 Feb 2024 11:52:50 +0000 Date: Mon, 19 Feb 2024 11:52:49 +0000 From: Jonathan Cameron To: "Fabio M. De Francesco" CC: Peter Zijlstra , Dan Williams , , , Ingo Molnar , Dave Jiang , Ira Weiny Subject: Re: [PATCH 3/3 v5] cxl/memdev: Use cond_guard() in cxl_inject_poison() Message-ID: <20240219115249.00007691@Huawei.com> In-Reply-To: <20240217105904.1912368-4-fabio.maria.de.francesco@linux.intel.com> References: <20240217105904.1912368-1-fabio.maria.de.francesco@linux.intel.com> <20240217105904.1912368-4-fabio.maria.de.francesco@linux.intel.com> Organization: Huawei Technologies Research and Development (UK) Ltd. X-Mailer: Claws Mail 4.1.0 (GTK 3.24.33; x86_64-w64-mingw32) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: lhrpeml500004.china.huawei.com (7.191.163.9) To lhrpeml500005.china.huawei.com (7.191.163.240) On Sat, 17 Feb 2024 11:59:04 +0100 "Fabio M. De Francesco" wrote: > Use cond_guard() in cxl_inject_poison() to not open code two up_write() > in an 'out' block. If the down_read_interruptible() fail, the statements > passed as the second argument of cond_guard() return -EINTR. > > Cc: Dave Jiang > Cc: Jonathan Cameron > Cc: Peter Zijlstra > Suggested-by: Dan Williams > Suggested-by: Ira Weiny > Signed-off-by: Fabio M. De Francesco Reviewed-by: Jonathan Cameron