Message ID | 20221214070846.1808300-3-haowenchao@huawei.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp58754wrn; Tue, 13 Dec 2022 23:20:58 -0800 (PST) X-Google-Smtp-Source: AA0mqf4JLp+VCk+P6M/aBn0VZ04BN7gOCQzpZAcCdnzDLIjyM19mggQMrqlrIMtEbv4AB/Dh0FvD X-Received: by 2002:a05:6a20:4f02:b0:a9:111a:236f with SMTP id gi2-20020a056a204f0200b000a9111a236fmr27354016pzb.33.1671002458388; Tue, 13 Dec 2022 23:20:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671002458; cv=none; d=google.com; s=arc-20160816; b=VB8UFeK3hpeDh9Sduh2iKI1i4oFyRRpczcUmESSNq4VYj6oizIBBvia9n+SG2OjWOS DsAJXJmHMlfv9Ire5qsUCDkvs+XcT1UKUf0wgscAq5/F/Fw31qQMkeviSiqLPAOBZyCb ucDxrz/GzgvvlcBJtHjxdLLkbhEQ1mI35fqbuOVrnuNpjxcP/agk85X1XDCy9MhvtGy3 Iy9p7XG1jtIi7PTVgeLacaSSRRkJiCT66uYp5+Zwf8HHPt4YV0r0zaspvx/0ZvrnnPv1 ff6vQA4yR5MU9hncfP0VIAkGcYTwib0yphdolcdm4ExOCWBqsVEQC3U0Spf1zhtYh81Q wRjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=6cnVG4aUD9h9ZXhr5zwZjLZmyQSP5RkgqBFjFuknPBE=; b=BoYF2Jxv4Ri+i59U3U8uIwoxwbcREwuJJqbxFRGyyuZjUbEAajhnIIAu19+XSuzk1V XBAQ4IUkR3rGXul6BHSXHo3MftHt6VRC4qB3p5T7d6Q25WY3swd0jZcjpJ1xrn3CH9z1 rHWINfJmOIESop8I6gjta5Kp1SSjrx3hq1Sj7oGoxsQFrkI7bydJRHdZWDL3z12ICXWn 0OPru2u71RWZhcBJrsMwXV1SS7r/hkAVqC6efJGkEbwPMMgaZmhOrcQZN/j0lhQbFRdE MZSdbHOIPSlLV9m0VFp62FNl+unV5MHgdpXjx6chA4dFr+hjrZlhclGPa3ZtSryuuuBP eSNQ== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 6-20020a631346000000b0047888d9f3aesi14586541pgt.547.2022.12.13.23.20.44; Tue, 13 Dec 2022 23:20:58 -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 S237510AbiLNHJc (ORCPT <rfc822;jeantsuru.cumc.mandola@gmail.com> + 99 others); Wed, 14 Dec 2022 02:09:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46142 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237517AbiLNHJP (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 14 Dec 2022 02:09:15 -0500 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C0E42654E; Tue, 13 Dec 2022 23:09:14 -0800 (PST) Received: from dggpemm500017.china.huawei.com (unknown [172.30.72.53]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4NX5zw36R2zRq3H; Wed, 14 Dec 2022 15:08:12 +0800 (CST) Received: from build.huawei.com (10.175.101.6) 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; Wed, 14 Dec 2022 15:09:12 +0800 From: Wenchao Hao <haowenchao@huawei.com> To: "Martin K . Petersen" <martin.petersen@oracle.com>, Mike Christie <michael.christie@oracle.com>, "James E . J . Bottomley" <jejb@linux.ibm.com>, Lee Duncan <lduncan@suse.com>, Chris Leech <cleech@redhat.com>, <open-iscsi@googlegroups.com>, <linux-scsi@vger.kernel.org> CC: <linux-kernel@vger.kernel.org>, <liuzhiqiang26@huawei.com>, <linfeilong@huawei.com>, Wenchao Hao <haowenchao@huawei.com> Subject: [PATCH 2/2] scsi:iscsi_tcp:Do not skip lun inquiry returns PQ=1 Date: Wed, 14 Dec 2022 15:08:46 +0800 Message-ID: <20221214070846.1808300-3-haowenchao@huawei.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20221214070846.1808300-1-haowenchao@huawei.com> References: <20221214070846.1808300-1-haowenchao@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.101.6] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) 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,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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1752173073611128153?= X-GMAIL-MSGID: =?utf-8?q?1752173073611128153?= |
Series |
scsi:donot skip lun if inquiry returns PQ=1 for all hosts
|
|
Commit Message
Wenchao Hao
Dec. 14, 2022, 7:08 a.m. UTC
When luns inquiry return PQ=1, do not skip this lun and try to
map these luns to an sg device.
Signed-off-by: Wenchao Hao <haowenchao@huawei.com>
---
drivers/scsi/iscsi_tcp.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/scsi/iscsi_tcp.c b/drivers/scsi/iscsi_tcp.c index 5fb1f364e815..316e2e17c72d 100644 --- a/drivers/scsi/iscsi_tcp.c +++ b/drivers/scsi/iscsi_tcp.c @@ -941,6 +941,7 @@ iscsi_sw_tcp_session_create(struct iscsi_endpoint *ep, uint16_t cmds_max, shost->max_id = 0; shost->max_channel = 0; shost->max_cmd_len = SCSI_MAX_VARLEN_CDB_SIZE; + shost->no_skip_pq1 = 1; rc = iscsi_host_get_max_scsi_cmds(shost, cmds_max); if (rc < 0)