Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp592541rwb; Tue, 13 Dec 2022 23:35:27 -0800 (PST) X-Google-Smtp-Source: AA0mqf77ISVR2vy7GHD9IhhHC6gWLAJtl6aXJCZETpbrH3iyCTFJ39bLZG7rGmpSa0pcp+IisqIU X-Received: by 2002:a17:906:8d0e:b0:7c1:7cc2:1f1e with SMTP id rv14-20020a1709068d0e00b007c17cc21f1emr4625227ejc.35.1671003327579; Tue, 13 Dec 2022 23:35:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671003327; cv=none; d=google.com; s=arc-20160816; b=ZAhEg0O5OdD+PE6ER6s3sIcd03EedO0YQJ2mTeKKT/pqOyCSdDVMewdqX2CDTW7sqw teN/RnzHCygN82Y0XKw59Rs6qLK7B8Xeni9D+1r3gS9pYSs+U3BFZn/HNmF4/UHG4rLL vJkmfbodjWOs0Sar8irVCkcykCJLF5v2SlGPlZB8Dj9SburQ76h6+Ibyq31W6czaHvGQ HmKqyelQqpl8+u6zWyo19txGsY7Y8tT1HCChHSLyYcQwDUEZnCvay9EGqnx+3cywb2T0 lImtDVWnGxfoVhUDNCJqcUNFR2KTlOmaO0EzXPBIHb+lPuK4PhfpRfTaHlfyVb4Ktl9S lO2w== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g25-20020a170906595900b007ad6a0afbc6si8777427ejr.7.2022.12.13.23.35.10; Tue, 13 Dec 2022 23:35:27 -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 + 71 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 ); 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 To: "Martin K . Petersen" , Mike Christie , "James E . J . Bottomley" , Lee Duncan , Chris Leech , , CC: , , , Wenchao Hao 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: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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) -- 2.32.0