Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp175843rwb; Mon, 28 Nov 2022 18:53:17 -0800 (PST) X-Google-Smtp-Source: AA0mqf5FigMCh1EqUSEj5iPoJXMYGdwhyqVsAkHb7HyE72b5Oq2zaeCfBd8QL8T/21yfITgicvBG X-Received: by 2002:a17:907:9c0a:b0:7ae:1e53:8dd4 with SMTP id ld10-20020a1709079c0a00b007ae1e538dd4mr3011641ejc.42.1669690397784; Mon, 28 Nov 2022 18:53:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669690397; cv=none; d=google.com; s=arc-20160816; b=hRvQivuKDAoQruyzhpVnazAg31XRABoGUypB+JsDgGAxEkLes3SWbN/PW+7MTi2MHl 3b02DGSyyi/hY14M92ULqYTOMt6MNWtygz5093wg+XGSgzrT65VmKH5O7dgJRwizIaE+ 1rFCKILfILVorjXTQJtTBColAl8m7/MYHthHCE/7Kg801zP0QTaRGaUZKXTcfSDhp95/ KusnJva+B+nEoQj9skRYQuzM7kLhxlCw9XTsL5FWU+wkK1Jt61GsI8YYtKFC0CZ3PQC+ 7864+ku1qVQNuVsWKYRqYJ4SDG3VeiGbQLjeaedCbJfJ5Cs5tTU8oEVgVPqyOUTcrfUN UVbw== 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:content-language:subject:user-agent:mime-version :date:message-id; bh=hKnTxWAM8rLreYaS7DEONZl3shtLLRsSvBrHCIdBGdo=; b=sWBjQnAKN7KAp0Dc6toSBC3xYYy3kwscEbs/zGxmkhafxq1bENjFjFqtqL00pVbQX/ S9tCOnkgwKAAWuf4tJ7HktYjJK012wb3jURb5GmehWrwWDQ59qe8hJU1vleHITf0DUqw jngjY0xI2XjonIO9zSVmDxNLYfi2tB0sYeo5yNHVY82dfCVvx1JpM+91UTORxxgLmkf8 r2fEKBvt56iY4yn7FBQJgK3ThX2gnaGYxSfAfWU0tORxzaWW1UKt55wVI5mpq+SzoFfh vRQjUiPEbBq4m4KmRidG2RY1LtOZxF8igRvyWYivODZKP4CODY1QqSgbNlejqssYnSFJ MJGw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jg6-20020a170907970600b007aea6b2696fsi13129594ejc.454.2022.11.28.18.52.52; Mon, 28 Nov 2022 18:53:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235252AbiK2CqB (ORCPT + 83 others); Mon, 28 Nov 2022 21:46:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46216 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235102AbiK2Cp6 (ORCPT ); Mon, 28 Nov 2022 21:45:58 -0500 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7271E47313; Mon, 28 Nov 2022 18:45:57 -0800 (PST) Received: from dggpemm500024.china.huawei.com (unknown [172.30.72.57]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4NLmnZ1wNfzqSfN; Tue, 29 Nov 2022 10:41:54 +0800 (CST) Received: from dggpemm500012.china.huawei.com (7.185.36.89) by dggpemm500024.china.huawei.com (7.185.36.203) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Tue, 29 Nov 2022 10:45:55 +0800 Received: from [10.67.101.126] (10.67.101.126) by dggpemm500012.china.huawei.com (7.185.36.89) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Tue, 29 Nov 2022 10:45:55 +0800 Message-ID: <66c9f444-ef8f-c56a-0b95-ed39715e4a75@huawei.com> Date: Tue, 29 Nov 2022 10:45:55 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.3.1 Subject: Re: [PATCH] scsi: sd: Update dix config everytime sd_revalidate_disk is called Content-Language: en-CA To: "Martin K. Petersen" CC: , , , , , , References: <20221019081825.20794-1-yangxingui@huawei.com> From: yangxingui In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.67.101.126] X-ClientProxiedBy: dggpemm500019.china.huawei.com (7.185.36.180) To dggpemm500012.china.huawei.com (7.185.36.89) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS autolearn=ham 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 2022/10/20 8:18, Martin K. Petersen wrote: > > Xingui, > >> When the host protection capabilities are 0x77 and a DIF disk is >> connected, the DIX and DIF of the disk are default enabled. Then if >> that DIF disk is reformatted as a non-DIF format, per the currently >> flow, the DIX is kept enabled which is not correct > > DIX is orthogonal to DIF and a host property. DIX should not be disabled > just because the disk is no longer formatted with protection > information. > > That said, your patch is probably fine. I'll take a closer look > tomorrow. > Friendly ping... Do you have other suggestions? Thanks, Xingui