Received: by 2002:ab2:788f:0:b0:1ee:8f2e:70ae with SMTP id b15csp443577lqi; Thu, 7 Mar 2024 01:46:03 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXZpSLV94NoFjtGsIrqFPDhTCyYtYPCjcgs4d1A3xTg/bvsQga76wmVt1eOYNVMPjnD/FZXwgNkaqFJDEVtqnAlMxCQ7SpCkjZcmghgLw== X-Google-Smtp-Source: AGHT+IGvodnVZQCs8jzvdlTNEjnZABBRCQqy7j99YghkLwBAHgxnyebTPK4d8v0/b8+HEOGFxnQ9 X-Received: by 2002:a17:902:b08d:b0:1dc:b30c:694c with SMTP id p13-20020a170902b08d00b001dcb30c694cmr6569101plr.41.1709804763500; Thu, 07 Mar 2024 01:46:03 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709804763; cv=pass; d=google.com; s=arc-20160816; b=RtNY7AhOgFJAPuIO6Xam8+g5QvEpQSLTa91ozi5vWPsy0TsHhkYxInvFm+/l1j9H7X +RlT4UJDalwOKdUH0F1mLGOBvT6dAcFaMIpuEZQbMsstWS5Vp5bfKfwGsPcOGcGsqvxI yFxPoiReU615ro79yPG7PGryMFnqg9b4UwDh2TkhH9omSDWAhIygypiwC9mXTfWTJevR 2jdoRL9dDsIxA8Z2wndUtp+rUg+7L/JKrAgkt3m8BvzBjbLnEYpdW1/xt4oDZi5qmxug TVItq9ZtauRpvbx/3rFzkuEKAUR8X32dv2zJnfYejiYonZ9fn3By3hJgLZ4criVzykrM 6fxQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:subject:cc:to:from; bh=YX5UuSt+cU1vTDPCXT7qTBGnoXzydT2k5XBt0FfpbaI=; fh=PKov2v7mtZqWrG2ToL14QCqscLF6oofVifdomTnOWI8=; b=Y0BdvNQ6j7kW+IalxUvY3T6RvDkoXOeFTOOgd3pZ+eiWZiK3GqNXOgfdU+Il7n+uYX jWc20/AhNBr+wQZ/Xo0kEY4Vfw3Cdo4t8FIcay0CsBRzO7Eg192fVN0EzJ/xmHpx0zOM 20edVsulC+5ba3VO4Aw+xMk9k32D4u+KAttkuNGUCNLVd7Cffat1Odx47OfLwqqDbRA0 9aSIuBloNSEz8f1YUnSZ6+MABMWuiKPYP2TCO0eCMXfya4oJ+ocxvWO1IMbWbHO3aalS LnA54P+agJs+TQjY8nCZNRUbFlfQCEHPNZJGzgZdADO0mjCjbuPL+DT23D+RhrVNmD1N 4SyQ==; 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-95237-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-95237-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id t18-20020a17090340d200b001dc8ebc1a5csi741915pld.450.2024.03.07.01.46.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Mar 2024 01:46:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-95237-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; 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-95237-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-95237-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 2E5ADB21D06 for ; Thu, 7 Mar 2024 09:39:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B485B84A39; Thu, 7 Mar 2024 09:39:14 +0000 (UTC) Received: from szxga07-in.huawei.com (szxga07-in.huawei.com [45.249.212.35]) (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 8655883CDC; Thu, 7 Mar 2024 09:39:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.35 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709804354; cv=none; b=nYqBrUB6LRSNaAGSg+YGajhv3e5SE+e06LoOPR5aAfXTmkFgm895tC/133HcoO+moPbq4QgmGFlyv2tdXjgGTo0Nyk/sA8CvSIKD37h4JnVQp+MhnDOxuk/gkdrtlMnjl8TwYfo5n1X24qG4o+gbvKOQp6xdv9EZSwvPDl+FqdE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709804354; c=relaxed/simple; bh=jljHW6o49zjbCy/L7+hPpkUpq8yYCdikMLs4jarlKrM=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=GdQMsCu8Z60Bl++6AcKK1VnLc9dtkZKAoLTgufwUWDIP77Xj+scMIaI2FUm6I/wH92J5DTZzVkVd6/LUInuPGJ82c4wnW9/2KcQf/RTovIcxWyBwyIIDAoHqTs3Rklmb2N/5hxSjUnV6za8X2QjbHpO/wrlV8H4vcEV9/Ipi+hA= 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=45.249.212.35 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.19.163.44]) by szxga07-in.huawei.com (SkyGuard) with ESMTP id 4Tr4256r8jz1QB5L; Thu, 7 Mar 2024 17:36:45 +0800 (CST) Received: from dggpemd100001.china.huawei.com (unknown [7.185.36.94]) by mail.maildlp.com (Postfix) with ESMTPS id 456F91402CA; Thu, 7 Mar 2024 17:39:08 +0800 (CST) Received: from localhost.localdomain (10.50.165.33) by dggpemd100001.china.huawei.com (7.185.36.94) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1258.28; Thu, 7 Mar 2024 17:39:08 +0800 From: Xingui Yang To: , , , , CC: , , , , , Subject: [PATCH v3 0/3] scsi: libsas: Fix disk not being scanned in after being removed Date: Thu, 7 Mar 2024 09:37:30 +0000 Message-ID: <20240307093733.41222-1-yangxingui@huawei.com> X-Mailer: git-send-email 2.17.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To dggpemd100001.china.huawei.com (7.185.36.94) This patch series fixes an issue when do discovery on an empty PHY to update PHY info after device unregister could cause newly connected device to not be scanned. Changes since v2: - Based on John's suggestion, allow smp_execute_task() arguments to be on the stack. - Based on John's suggestion, add a helper sas_get_sas_addr_and_dev_type. - Updated comments. Changes since v1: - Use sas_get_phy_discover() instead of sas_get_phy_attached_dev() in sas_rediscover_dev() and use disc_resp to update phy info. Xingui Yang (3): scsi: libsas: Allow smp_execute_task() arguments to be on the stack scsi: libsas: Add a helper sas_get_sas_addr_and_dev_type() scsi: libsas: Fix disk not being scanned in after being removed drivers/scsi/libsas/sas_expander.c | 64 ++++++++++++++++++++---------- 1 file changed, 42 insertions(+), 22 deletions(-) -- 2.17.1