Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1883162pxb; Mon, 18 Jan 2021 02:25:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJw2yeUC22NuJ6hamXyShAGXv6wMBeJUA/XjoC65Baey9GRDjgKwHTZGpkW0yKhh2BubFa1K X-Received: by 2002:a50:c209:: with SMTP id n9mr18742147edf.123.1610965529753; Mon, 18 Jan 2021 02:25:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610965529; cv=none; d=google.com; s=arc-20160816; b=OhSuoEn9FcxRStLodUUq+DMJKEkSwXfAbbTov7dRm2Az42LfGfPpMDNyTV4vXOYi3B 21cT8o/m0aGgYi1JOmi5J424H6sAMbqyka4jiiO8iP4cSVsaHqA1LQ6KpEZAC3cJinni BXOr96B8A7hMv4LgfR7XvFYGFrm49GnI5yM3z6WNgb0ur43KFPeiCcIUFCoY85eXywbP ypi45oiArztxZd3GI/70cXihWZ/LcJN/Oum7SLIoCfRHpy+kcWj7RMF6MAB+WvZqwFDq ZJVyoTay1ub/+KCnBLnuPgaCDz4myGt5RqElX91aX4A3NncwPhgy0h2wtY4Ekb9p+29f 9Jow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:dkim-signature :dkim-signature:from; bh=yewws0s6s3/xuCM1cWNhQ98mFYo9ii8BH+uQAWu4Oo4=; b=Mg0ndNmm9HMHaxE9hkYNPZ6blhjWocR8ubU3V++lARrLNrBg8JcMvzUqJBJlC/FmNJ iDlQqptUH8mMAL8sIhu1R754WeYA68OwrQOw0ncF/K6sSZr7I9ZQFEFQBXYJv4HfqBQS jyfifl/voxUoFLCLQPBswlkcWHWGKGezX4ZD1+BB65N9lyiEajNDc//pwpxyJ2Et7/pd +9OM3O2TQTpL2uoDVTCM3z+YWV/sxSELMZp9XXgEvI7UIYhfYPcrOsXkTNlLzRv+9T6d GJu/DHIgpOhuQqH80kFEnWz/b4G9gt58MBdGdViRzTzxcyUvAkK8nYxlgUqgfgimFHGc EXTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=OTOZq5Cs; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g3si2821239ejd.595.2021.01.18.02.25.06; Mon, 18 Jan 2021 02:25:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=OTOZq5Cs; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390019AbhARKWV (ORCPT + 99 others); Mon, 18 Jan 2021 05:22:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55360 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389753AbhARKNa (ORCPT ); Mon, 18 Jan 2021 05:13:30 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B484C0613D3; Mon, 18 Jan 2021 02:12:49 -0800 (PST) From: "Ahmed S. Darwish" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1610964690; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=yewws0s6s3/xuCM1cWNhQ98mFYo9ii8BH+uQAWu4Oo4=; b=OTOZq5CsdtFsbsnCvZJw2i0TQrGOwFvOVj//JwDcuvxNUmDNPSiLgYR+5t/6toqrFVc7QS L90AicuyqKvV7qZW3KKL5hm+Ac75V+VNysRSVJa42OqPdkFyZcL7Na0zerkkT5hEG1FpGu VbD2ddPYUCQp9SoRQFQkfdLox1pEA097wkn7xOxL2gJwXed1OPRkSRCy5wan1cYp1S9Fls gXqcB15R09FeKCZjDqGk7G3hHz3KyggRfFmxM5qs5A1vHKvHThX+9Rl6VT367Gj/6gkcMJ +MIuO/YNUDgLO6BZDi6Bq7RTbm8aulArqHEehZdlcxZSdgYrWXOijauhjOuJMg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1610964690; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=yewws0s6s3/xuCM1cWNhQ98mFYo9ii8BH+uQAWu4Oo4=; b=Emv3JrlRdpAqT9VOyXO0/sgAH5YjfXe7YwkCtryMgzPh3SPw/4HCZqFT5TykOfu8aunHYk 4dQ1YonUvjxyHEBg== To: "James E.J. Bottomley" , "Martin K. Petersen" , Christoph Hellwig , John Garry , Jason Yan , Daniel Wagner , Artur Paszkiewicz , Jack Wang Cc: linux-scsi@vger.kernel.org, LKML , Thomas Gleixner , "Sebastian A. Siewior" , "Ahmed S. Darwish" Subject: [PATCH v3 17/19] scsi: isci: Switch back to original libsas event notifiers Date: Mon, 18 Jan 2021 11:09:53 +0100 Message-Id: <20210118100955.1761652-18-a.darwish@linutronix.de> In-Reply-To: <20210118100955.1761652-1-a.darwish@linutronix.de> References: <20210118100955.1761652-1-a.darwish@linutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org libsas event notifiers required an extension where gfp_t flags must be explicitly passed. For bisectability, a temporary _gfp() variant of such functions were added. All call sites then got converted use the _gfp() variants and explicitly pass GFP context. Having no callers left, the original libsas notifiers were then modified to accept gfp_t flags by default. Switch back to the original libas API, while still passing GFP context. The libsas _gfp() variants will be removed afterwards. Signed-off-by: Ahmed S. Darwish Reviewed-by: John Garry Cc: Artur Paszkiewicz --- drivers/scsi/isci/port.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/scsi/isci/port.c b/drivers/scsi/isci/port.c index e50c3b0deeb3..448a8c31ba35 100644 --- a/drivers/scsi/isci/port.c +++ b/drivers/scsi/isci/port.c @@ -164,8 +164,8 @@ static void isci_port_bc_change_received(struct isci_host *ihost, "%s: isci_phy = %p, sas_phy = %p\n", __func__, iphy, &iphy->sas_phy); - sas_notify_port_event_gfp(&iphy->sas_phy, - PORTE_BROADCAST_RCVD, GFP_ATOMIC); + sas_notify_port_event(&iphy->sas_phy, + PORTE_BROADCAST_RCVD, GFP_ATOMIC); sci_port_bcn_enable(iport); } @@ -224,8 +224,8 @@ static void isci_port_link_up(struct isci_host *isci_host, /* Notify libsas that we have an address frame, if indeed * we've found an SSP, SMP, or STP target */ if (success) - sas_notify_port_event_gfp(&iphy->sas_phy, - PORTE_BYTES_DMAED, GFP_ATOMIC); + sas_notify_port_event(&iphy->sas_phy, + PORTE_BYTES_DMAED, GFP_ATOMIC); } @@ -271,8 +271,8 @@ static void isci_port_link_down(struct isci_host *isci_host, * isci_port_deformed and isci_dev_gone functions. */ sas_phy_disconnected(&isci_phy->sas_phy); - sas_notify_phy_event_gfp(&isci_phy->sas_phy, - PHYE_LOSS_OF_SIGNAL, GFP_ATOMIC); + sas_notify_phy_event(&isci_phy->sas_phy, + PHYE_LOSS_OF_SIGNAL, GFP_ATOMIC); dev_dbg(&isci_host->pdev->dev, "%s: isci_port = %p - Done\n", __func__, isci_port); -- 2.30.0