Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp2389367imw; Wed, 6 Jul 2022 05:15:17 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vJeOYi7iVspHRA8aCs2cAczTXTUWzIWWu2C6tLyTJcrvURr4j/WwmsC+XdxiNX/AAi1tyZ X-Received: by 2002:a17:906:20c6:b0:716:646d:c019 with SMTP id c6-20020a17090620c600b00716646dc019mr38513147ejc.529.1657109717747; Wed, 06 Jul 2022 05:15:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657109717; cv=none; d=google.com; s=arc-20160816; b=nVq6o68RCTFzlc1JW1CmDV0Erw+C0JPeQNfRsrCjqGuhM0+jfz0rWOdVlSlPgO3gns IpqtIqHYu6QEnEsBM4xv6bHHgDIQnmMUsktXB9L/7rWNsgQUJzyIMlbojmT0I3N+R9YS fPQ13kI3FznJWiuRIb5MIzvuYUTIwhMmLNwsem1eXdA6jqX4zxEQy9y9uDAWOhMwtGCl LDeCV1hN9/EBSuXpAUKKlHNLFgIBUyBa7fQFHyG/tUh6sLgRnkyUjwSA3lm72fW+XNsd TUbwi1xVs0T/Q7+TSpvfPHn7z2BzdGGTamPAELPx+q96kUCeZIeeGG8IDkD4+URbB6NI I+kg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=6zkQL6ThNBu08ktCl2abJsSY+S7D/jhwIzV1zlLSYTU=; b=javw8XLc3OXNiBE6BLGHAmcnGyRw9WiB4XT2VHjNcENLEx8ZG+LiYR9GWuDnGH4Fpa t1kLBjsXXtrGiiMkKcgy+uakr52qvqohhGobDO0Nf6tF19cKtxpU0OfqIGgOqL8/Uui5 h/7UlTlCGwJ00joy4rvnX75hsyntGJ8x+pI2x3x/v11YrYTwz0vLRRNAIWtKnaVPLn9t P2cP43VQRDWJom1urJvDSiD+GAmvXKyi0muNNba+cMe3TdotVBZg/b4OlaBgI51SheLO 2udciYlh1vqMZWlp3WHg/CBFx9dEf1S6YRgnxg6bm6eHp10aYZW3mDeeN1Ow8qEqcumV 5lug== 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 y11-20020aa7c24b000000b0043a7b702586si4923893edo.418.2022.07.06.05.14.52; Wed, 06 Jul 2022 05:15:17 -0700 (PDT) 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 S233627AbiGFMLj (ORCPT + 99 others); Wed, 6 Jul 2022 08:11:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45202 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233521AbiGFMLU (ORCPT ); Wed, 6 Jul 2022 08:11:20 -0400 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 067DC2A251; Wed, 6 Jul 2022 05:11:19 -0700 (PDT) Received: from fraeml736-chm.china.huawei.com (unknown [172.18.147.206]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4LdJF43VP1z686kC; Wed, 6 Jul 2022 20:07:04 +0800 (CST) Received: from lhreml724-chm.china.huawei.com (10.201.108.75) by fraeml736-chm.china.huawei.com (10.206.15.217) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Wed, 6 Jul 2022 14:11:17 +0200 Received: from localhost.localdomain (10.69.192.58) by lhreml724-chm.china.huawei.com (10.201.108.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Wed, 6 Jul 2022 13:11:11 +0100 From: John Garry To: , , , , , , , , , CC: , , , , , , , , , , John Garry Subject: [PATCH v3 4/6] scsi: fnic: Drop reserved request handling Date: Wed, 6 Jul 2022 20:03:52 +0800 Message-ID: <1657109034-206040-5-git-send-email-john.garry@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1657109034-206040-1-git-send-email-john.garry@huawei.com> References: <1657109034-206040-1-git-send-email-john.garry@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.69.192.58] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To lhreml724-chm.china.huawei.com (10.201.108.75) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 The SCSI core code does not support reserved requests, so drop the handling in fnic_pending_aborts_iter(). Signed-off-by: John Garry Reviewed-by: Bart Van Assche Reviewed-by: Christoph Hellwig Reviewed-by: Hannes Reinecke Reviewed-by: Martin K. Petersen --- drivers/scsi/fnic/fnic_scsi.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/scsi/fnic/fnic_scsi.c b/drivers/scsi/fnic/fnic_scsi.c index 3d64877bda8d..e7b7f6d73429 100644 --- a/drivers/scsi/fnic/fnic_scsi.c +++ b/drivers/scsi/fnic/fnic_scsi.c @@ -2019,8 +2019,6 @@ static bool fnic_pending_aborts_iter(struct scsi_cmnd *sc, if (sc == iter_data->lr_sc || sc->device != lun_dev) return true; - if (reserved) - return true; io_lock = fnic_io_lock_tag(fnic, abt_tag); spin_lock_irqsave(io_lock, flags); -- 2.35.3