Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7975417rdb; Thu, 4 Jan 2024 14:06:43 -0800 (PST) X-Google-Smtp-Source: AGHT+IGwEX6ZTM9O1zm6qcyH2myVXAxFgXCzzVMc3ju43/kb2/ZTF+aihrm5dQchrArdyUAogvuG X-Received: by 2002:a05:6a21:3299:b0:197:32e3:f0f6 with SMTP id yt25-20020a056a21329900b0019732e3f0f6mr1354366pzb.59.1704406003411; Thu, 04 Jan 2024 14:06:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704406003; cv=none; d=google.com; s=arc-20160816; b=cmcOgkY2KdoMP3vcosVc5GM5ZgfEefzkCJ505WgGssZSVQFVn/G4XpeqlIP+dYAMe0 uqK0yQh3BbwVnusbDAOiA64kT7BHGWXWAcIcuHu34fmxIMSI18xwreSv8CHSfEhOVDmT FrLIUpfGmp9J1BDnsGvx+6Nw+pSq8hdV5e+i0qxggCmf/V1B/THtQEh4E225NgPZKzN2 2dUJsKwgxBdykdMI/hILnno6Yuwk9Zgx2TC6jlF9xHKembRyv1GERY7eUa8FgEvLuHhy 4QHp6z/M9BDFCcWkJB+MADo19omhKpmXqGWX37JKJf6aeGEAEQVqbbgcIT4+4mhzc2mH S39g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=subject:content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=AAtCmH9DA6lM9l6DifQrYEv+bX1UwKxr56zpWzhv1mc=; fh=s6nG7VP0zD+PQI4OzU8pCT90fqv8mvWlrzYXPFBC/Zo=; b=hGM0lAcG5K+4mIHzs01XqKpg0nVQXiNfFSt82dS7D5xhtsbCKE6aaXlH0CdDvSPgCy uiGaGH6g+iqjWgjvH7O4ZEUHDRy0zKejbdIFzDHziPUKCqKz3ffae1ffhae7grPDFW2E zKNAwWps0uRwqV0yEc9ubqSW+O9cKDHmEFE+d35xUQyM3sZMoFtnJ42FNsm2qkdyKKJ8 FsjHJrO5TymAhlX++L96kpmwOCg/7wCrEvvxe/FkpdGlTcqAqGndQuEo7rv4IvKhVOCe gEX/HqCt8OPk1Sp7Y4MVb8Zkzgyw5Cs2X50qM79MVyeeCz7HE3eWro9pt2yHGlAuUw1q PcKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@deltatee.com header.s=20200525 header.b=tRavlGDQ; spf=pass (google.com: domain of linux-kernel+bounces-17272-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-17272-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=deltatee.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id t12-20020a056a0021cc00b006d99b560a3csi212148pfj.292.2024.01.04.14.06.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jan 2024 14:06:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-17272-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@deltatee.com header.s=20200525 header.b=tRavlGDQ; spf=pass (google.com: domain of linux-kernel+bounces-17272-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-17272-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=deltatee.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id CD069B23772 for ; Thu, 4 Jan 2024 22:06:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 486022C85F; Thu, 4 Jan 2024 22:06:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=deltatee.com header.i=@deltatee.com header.b="tRavlGDQ" X-Original-To: linux-kernel@vger.kernel.org Received: from ale.deltatee.com (ale.deltatee.com [204.191.154.188]) (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 797F72C851; Thu, 4 Jan 2024 22:06:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=deltatee.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=deltatee.com DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=deltatee.com; s=20200525; h=Subject:In-Reply-To:From:References:Cc:To: MIME-Version:Date:Message-ID:content-disposition; bh=AAtCmH9DA6lM9l6DifQrYEv+bX1UwKxr56zpWzhv1mc=; b=tRavlGDQW3rrwtr170Y697ZAUo TQQDbqphJG0rNHMFZXsdMzeQyaI1ksRfbV8rRh6tFXnUMD3yRn4B1Li8reCcRL9RcS79Bt5aHYLq3 Ukg9sbe/qbBTwpTftDFjvy92YN+ty3TNAArYzmw+q7kdpjBh2yDqQJLcCvGiSnr798KmeUK59ue2J 09qvlSh/1p3HsQlUy7sOjPMTI8pwwvYTb3zFfn/udvmdE5ZmuvPbnZ4ruvmbkjqtjZ1N40mN+6PvO eAf2qZZ1YO1c/n+UIJL3bfEWtmz39aaJxGvh4rUg4n4im6aJLSxOYdvmqD+tyeoEgsdHFqCS+fKJP Tx9XS27w==; Received: from s0106a84e3fe8c3f3.cg.shawcable.net ([24.64.144.200] helo=[192.168.0.10]) by ale.deltatee.com with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1rLVZs-00CkPZ-5i; Thu, 04 Jan 2024 14:48:36 -0700 Message-ID: Date: Thu, 4 Jan 2024 14:48:33 -0700 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird To: Christophe JAILLET , Bjorn Helgaas , Eric Dumazet Cc: alexis.lothore@bootlin.com, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-pci@vger.kernel.org References: <02d9ec4a10235def0e764ff1f5be881ba12e16e8.1704397858.git.christophe.jaillet@wanadoo.fr> Content-Language: en-CA From: Logan Gunthorpe In-Reply-To: <02d9ec4a10235def0e764ff1f5be881ba12e16e8.1704397858.git.christophe.jaillet@wanadoo.fr> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 24.64.144.200 X-SA-Exim-Rcpt-To: christophe.jaillet@wanadoo.fr, bhelgaas@google.com, edumazet@google.com, alexis.lothore@bootlin.com, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-pci@vger.kernel.org X-SA-Exim-Mail-From: logang@deltatee.com X-Spam-Level: Subject: Re: [PATCH] PCI/P2PDMA: Fix a sleeping issue in a RCU read section X-SA-Exim-Version: 4.2.1 (built Sat, 13 Feb 2021 17:57:42 +0000) X-SA-Exim-Scanned: Yes (on ale.deltatee.com) On 2024-01-04 12:52, Christophe JAILLET wrote: > It is not allowed to sleep within a RCU read section, so use GFP_ATOMIC > instead of GFP_KERNEL here. > > Fixes: ae21f835a5bd ("PCI/P2PDMA: Finish RCU conversion of pdev->p2pdma") > Signed-off-by: Christophe JAILLET This makes sense to me. Though, the use of RCU could probably use a review. Seeing p2pdma is only released through a devm action on the pdev, I would think it shouldn't be needed if we hold a reference to the pdev. Other than that: Reviewed-by: Logan Gunthorpe Thanks! Logan