Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1735617pxm; Thu, 24 Feb 2022 08:25:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJwgvofBbiRrimnOXLMpCBLjRRmPy5lxEu2DaaYu4L02u0Yzdubw5Yw9wGmE4Qn26jR02KeB X-Received: by 2002:a63:df0d:0:b0:373:401:6818 with SMTP id u13-20020a63df0d000000b0037304016818mr2874940pgg.34.1645719941117; Thu, 24 Feb 2022 08:25:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645719941; cv=none; d=google.com; s=arc-20160816; b=08Wix/krPEwYiqFxVRAlL23kZz57sCwWpq+g+JlRtTiw9v7FwsFi3c5j7SOvG3gykH 825359Rk0W/BrS2jGirA4RCVBhbNjxlbqWZbGrGY6WWzZsFfYAqgFcQICZAaxUAyRbyE 5K5Rqbr5OOnfswmpAdtt/zW9HHCM0anMWa8czWlPra6MDX/ktmOIyizVdzIsWL0KrvjO hzurl9Aj0/lxQqKutoQdHkOlkzXNinMinuLxOIpM1Fddnu9+ty8kZAHtKvgGeiy5AFAa b6dALfqtrxGkkS9CNjJca6U7Gi+cBLPE1bYH0kbbp74vVUsPf4yJHSX4QtIe0+NWBTSH iZ0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:subject:user-agent:mime-version:date:message-id; bh=0g6xxGxZyXCJ6vjA75u79smOd/2mResjmZR9gFwJQ7k=; b=HLbLGIEgulCltx/R4d1z+F9PFutk6C365uP9rt8KL4gOrQkUfck3+fUZNhNc0+IPGo 62cHbis2TxD2BOm3c2W8Kgt96lkr6M9tHnzt7ONRp1OKaAP7se4IUXjLdpQZHBqoDLKG Bm/EFwrMgl6KBbr51InDXhr4RbvVNv70jyQwfXA97moPn6OUOjFTRBJYyWmig6w+h0K/ +27Zm0GJwHqaWxYRXcwTolo2i+3kStkTkBWS7GvYrMULC1BapOTCwwf5TXsDxqCDNFnN 1uTExYe0BIHjkK3YKHHkdFC1ULby+gy6F3DunT2UjIcWwBVl3Rpe7pAiHcwG5Ygr2V/H a1Bw== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id e14si2358925pgw.212.2022.02.24.08.25.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Feb 2022 08:25:41 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 122D0114773; Thu, 24 Feb 2022 08:15:28 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234787AbiBXNFh (ORCPT + 99 others); Thu, 24 Feb 2022 08:05:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38970 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234785AbiBXNFf (ORCPT ); Thu, 24 Feb 2022 08:05:35 -0500 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A4CA37B5A8; Thu, 24 Feb 2022 05:05:06 -0800 (PST) Received: from fraeml707-chm.china.huawei.com (unknown [172.18.147.206]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4K4Clg2Fgjz67w62; Thu, 24 Feb 2022 21:03:59 +0800 (CST) Received: from lhreml724-chm.china.huawei.com (10.201.108.75) by fraeml707-chm.china.huawei.com (10.206.15.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Thu, 24 Feb 2022 14:05:03 +0100 Received: from [10.47.86.126] (10.47.86.126) by lhreml724-chm.china.huawei.com (10.201.108.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Thu, 24 Feb 2022 13:05:02 +0000 Message-ID: <06714ce6-40cd-653d-4e5f-4bafee355035@huawei.com> Date: Thu, 24 Feb 2022 13:05:01 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.5.1 Subject: Re: [PATCH 1/2] scsi: libsas: Make sas_notify_{phy,port}_event() return void To: Damien Le Moal , , CC: , , , References: <1645700699-82369-1-git-send-email-john.garry@huawei.com> <1645700699-82369-2-git-send-email-john.garry@huawei.com> <014a69ed-7a99-2a67-fa3a-947d11601114@opensource.wdc.com> From: John Garry In-Reply-To: <014a69ed-7a99-2a67-fa3a-947d11601114@opensource.wdc.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.47.86.126] X-ClientProxiedBy: lhreml752-chm.china.huawei.com (10.201.108.202) To lhreml724-chm.china.huawei.com (10.201.108.75) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 24/02/2022 12:43, Damien Le Moal wrote: > On 2/24/22 20:04, John Garry wrote: >> Nobody checks the return codes, so make them return void. Indeed, if the >> LLDD cannot send an event, nothing much can be done in the LLDD about it. > > It really sound like the LLDDs should be fixed to e.g. reset the adapter > if things go south with these functions. No sure though. But this is not an adapter fault. As an example of a scenario which we could be dealing with, it may be that a phyup event occurs in the adapter but libsas cannot allocate memory to process the event. There's not much the adapter/LLDD can do about that (nor does do). > >> >> Also remove prototype for sas_notify_phy_event() in sas_internal.h, which >> should not be there. >> >> Signed-off-by: John Garry >> Reviewed-by: Xiang Chen > > In any case, these changes do not make anything worse :) Thanks, > > Reviewed-by: Damien Le Moal >