Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1740454imu; Thu, 10 Jan 2019 02:08:57 -0800 (PST) X-Google-Smtp-Source: ALg8bN5nrAjQo1VG+OVSjVw0ywPuIg524BVHx2N2lhbiOsTb92LvSIBRf1VHJLAnkBAYA23UBEAY X-Received: by 2002:a63:7c13:: with SMTP id x19mr8312454pgc.336.1547114937396; Thu, 10 Jan 2019 02:08:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547114937; cv=none; d=google.com; s=arc-20160816; b=Kb9FiRATf0VIrba4IL4eHOZe4QD0Qo1mxZadxPy6sE+2i2+NStWbfFGEqo0YoVji90 G7iJvIxZluFAXxYXu9OiQqsZCJPDBit+sHlTlM44Yg7DvPFCyMBfMHicbPrig3wuWg/m ssgZNS0lzQIkCxdrWj07HLLd9VDxufZUq7e3tFq4kimDVHbiZ0Hq2RkS/SsbpjnDK2XV 6qY3vs+MmoY5VZpUcjPTqypi9chIxQxgAZHQTxBO/tqFDzHE9t/4ryLs0AQH2HsGO0p+ +UuoQ81Bbro0xM3q3/CwlVosa3l7gUKFqhoYwbDaR6yVJ7zL0ewTsjgagcxKGkZiMhij QXng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject; bh=zWOKFkMEE5Aro8BCJnlZeqhvdUJEjDDRtMcpb6I4ses=; b=cRHIN7zqPAMnSHzyNO5EAV078GkjjrHozhZv9kBWNw92vE3iKfpHHJnqh8EPnOGMIf wsZprGZMZiDDq8oJUwylLb1teNRBc8SRMUgaKlJWjBahUgJcS2IB0ButHzXm6rnoZ2R0 7+1RGmUYjMzqa7a0J5y6GRXg+MM43tKnROiiVMjplB6ixo+x0LZZRtRKCKKAKoWsB0sz OiADyS7gV6Om8kK++yxP6fF/irzwHQORlDlO9dJVdSUEtsGjmJ9eZzpNTz9ylDG4Xe0m cbf8Bn+pUQzsGw6OY/AZCkHf1QuQKVM6N1IVvuPNIIAWshwdQ2lX2BF0KJjUdWmUYrCL 0BBg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d3si20381403pll.161.2019.01.10.02.08.42; Thu, 10 Jan 2019 02:08:57 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727800AbfAJJMF (ORCPT + 99 others); Thu, 10 Jan 2019 04:12:05 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:17130 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727257AbfAJJMF (ORCPT ); Thu, 10 Jan 2019 04:12:05 -0500 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 08154533F960A97D8195; Thu, 10 Jan 2019 17:11:59 +0800 (CST) Received: from [127.0.0.1] (10.202.226.43) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.408.0; Thu, 10 Jan 2019 17:11:51 +0800 Subject: Re: [PATCH] scsi: isci: initialize shost fully before calling scsi_add_host() To: Christoph Hellwig , Logan Gunthorpe References: <20190108205043.3122-1-logang@deltatee.com> <20190109184105.GB22070@lst.de> CC: , , , Intel SCU Linux support , Artur Paszkiewicz , "James E.J. Bottomley" , "Martin K. Petersen" , Jens Axboe , Jeff Moyer , chenxiang From: John Garry Message-ID: <8d96b40d-fc83-9218-9479-3de423594ddb@huawei.com> Date: Thu, 10 Jan 2019 09:11:44 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: <20190109184105.GB22070@lst.de> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.202.226.43] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/01/2019 18:41, Christoph Hellwig wrote: > This looks good. I wonder if there is any good way to prevent other > drivers from picking up this bug byt using a better interface, but > that should not delay your fix. > > . > I noticed that hisi_sas has this same problem but I forgot to fix it. So how about just drop these APIs and let the user set the shost protection parameters directly, like other shost parameters, which should make it a bit clearer when these should be set, i.e. before scsi_add_host()? John