Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2560794rwb; Fri, 16 Dec 2022 03:54:31 -0800 (PST) X-Google-Smtp-Source: AA0mqf7mAVlHICplyngn1J0Beu2CKZamgBYwJp6M/HAxgF7Qcu+Cv3urAurSdODH6OisGdQ6FSU6 X-Received: by 2002:a17:902:7e88:b0:189:ced9:c9e5 with SMTP id z8-20020a1709027e8800b00189ced9c9e5mr31586581pla.13.1671191670947; Fri, 16 Dec 2022 03:54:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671191670; cv=none; d=google.com; s=arc-20160816; b=YF5onxxm3gEV8PkdjoN5q+i8waIhjBXxv16DQ2yLy0XKsJjUwGFGiTzyHoJd8J06Ij z03l0aOVExlA77Dq4WGU6DCmfV1jIrfbiKBt8hQ565uBCCZlvKPSoIgw52YWKtTBhH38 0z5XImVWLDDW6dd/+4l+xDo4sOM9pDP4jdAoot53USYWSEtnLVD2K3T8AFd11HeUydBG OLrgatHLcYzl+0QeC72nyPUTwlCw4W0KfMR4foP2ZBxYVS7t46MNm0X6Hfh6aJacUipk H6T5PebUWcIaVOYLWCWeZj4xhUVkXTKJQtHNRkvuEZbrkxf7zIOPirHFGYOg5uM+g7/l YWdQ== 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=I/aCogAMFa+PmnQwtYDa7qA4mvp1/MrbZ5TXaSOs5sc=; b=qJ5u0Qg36HV5kP+3pBGiQS0KApotuoah0ZePS4NDSLaP2w9Iy9MTrehSZumK1ZN3mm maQhImhIW35yeeQ12NDgN2fev7R5NpbHu3wYYYlS/WsyrDXTzfmp6z5oX60Red3QZZMC gtf2eJXaqVdEMCcwbwia1WowQ9+x1+g8Y0L0hdc+PGhBASA5sDHQRSTDKQQX17C6Hx7i fJDhStryd1mZnRfxwCUONErvjvTZNZDKYCkiKRdbjTRTJXVbeNhW9JGr8YPBPHJd6njN 8NDuh53C4WhywwHn7kkgWkGB9597YGmpjVGFHsNPlcoRBOmdLYMH1Css/wHPGvUHV7iq VOrA== 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 j14-20020a170902da8e00b00187242da09asi2472610plx.265.2022.12.16.03.54.22; Fri, 16 Dec 2022 03:54:30 -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 S231162AbiLPLle (ORCPT + 68 others); Fri, 16 Dec 2022 06:41:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229495AbiLPLla (ORCPT ); Fri, 16 Dec 2022 06:41:30 -0500 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C054225EA8; Fri, 16 Dec 2022 03:41:29 -0800 (PST) Received: from dggpemm500017.china.huawei.com (unknown [172.30.72.55]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4NYRx34f2jzRq5n; Fri, 16 Dec 2022 19:40:23 +0800 (CST) Received: from [10.174.178.220] (10.174.178.220) by dggpemm500017.china.huawei.com (7.185.36.178) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Fri, 16 Dec 2022 19:41:27 +0800 Message-ID: <5129c84b-38e5-8be4-6411-fcc003776d70@huawei.com> Date: Fri, 16 Dec 2022 19:41:26 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 Subject: Re: [PATCH 0/2] scsi:donot skip lun if inquiry returns PQ=1 for all hosts Content-Language: en-US To: Christoph Hellwig CC: "Martin K . Petersen" , Mike Christie , "James E . J . Bottomley" , Lee Duncan , Chris Leech , , , , , References: <20221214070846.1808300-1-haowenchao@huawei.com> <57c12317-c229-8cbe-b3d2-d799ea5f554c@huawei.com> From: Wenchao Hao In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.178.220] X-ClientProxiedBy: dggpeml500015.china.huawei.com (7.185.36.226) To dggpemm500017.china.huawei.com (7.185.36.178) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 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/12/16 15:12, Christoph Hellwig wrote: > On Thu, Dec 15, 2022 at 05:09:31PM +0800, Wenchao Hao wrote: >> In my opinion, if the addressed lun still response the >> inquiry and other commands, we should not skip it, >> maybe let the scsi drivers like sd/st/sg to determine >> how to handle this lun accordint to the PQ value. >> >> As discussed in following mail, another drivers would >> be broken too. > > So why do you force a specific behavior for iSCSI? > . For nothing, I want the iscsi_tcp transport do not skip PQ=1 default as what it did before commit 948e922fc4461 ("scsi: core: map PQ=1, PDT=other values to SCSI_SCAN_TARGET_PRESENT").