Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp3716641iog; Tue, 21 Jun 2022 04:38:28 -0700 (PDT) X-Google-Smtp-Source: AGRyM1s8McW0uwAQto3qQS764HpF7IcWak1wSR7Onimt8CKMKkluToSlrSczj+DbYaXZ+77dcKG0 X-Received: by 2002:a17:902:7088:b0:167:78c0:e05e with SMTP id z8-20020a170902708800b0016778c0e05emr28304433plk.149.1655811508352; Tue, 21 Jun 2022 04:38:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655811508; cv=none; d=google.com; s=arc-20160816; b=Sl8AR52IdiyL0F4Q1wwJb2XjNl8RLHuoUtfh6T/eneOa/NaV7+yg41UENCj0pKpVKr d2uXyShyZMbioBPrPZM7w+/Tqsx3BnOrPG4Z2Ufpu2NQXIKG88fNV0c9VCGng7CjUz+8 ji+yzAA++6aCa0tzJpghBu+bY7AxySfVCdWlQ9nDmhhuaOr7C40QtHiVwHZxiF9x8xcZ Kke7kib6Arg/wWbfFhgFotHy+PXoHy1Ebdb5hl74TB+DJstaBlSrXchQsBncWBND8wwt BWIXvBJhqJTGx8RPy085tgBquvTrrKhLm9zTkGxr39+dfaNsCa+s3LVtXQVcOmHxDhYL lVEw== 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=ymieYjh57bAYzw2NO2+780EPokpYNklYOp2PpKbzsXE=; b=PlArdAnPbQed/szAM2ax4cIqgM43bv2GWr+D+ufCHyKSR5PYTYQYa+14ckTxIkSU5L ii/r7n7gK/tCVne5jd1Q22pg4bxaJk3xRTHVYdg7s/66A5UUwBQz73Ew1aMRMgXPlz+U Y6K3lyybfgiWo7RHt6lFHsl4BJW1G8Gdn4jSAy6fuBBJ4/LWZ+JI+MIoZQ7eGvi1wJjV 5S6MNj3iUXs9tRbnVGWkS1USOQvp/wwggLtpP+cBxnb4SGRY3YI3R2hETxnuLkNSIgXw YVM4MAKzIer4TNzlALBex4Jo7yYzWo49GoxjlsgFvwhwTz7wuumjf1WI1yWvLWoDTtzp 7lxg== 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 gl6-20020a17090b120600b001ec7c1e6019si13066621pjb.32.2022.06.21.04.38.02; Tue, 21 Jun 2022 04:38:28 -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 S1349471AbiFULWd (ORCPT + 99 others); Tue, 21 Jun 2022 07:22:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36958 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349157AbiFULWZ (ORCPT ); Tue, 21 Jun 2022 07:22:25 -0400 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 87CF92A274; Tue, 21 Jun 2022 04:22:24 -0700 (PDT) Received: from fraeml742-chm.china.huawei.com (unknown [172.18.147.226]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4LS3sz4NJLz68778; Tue, 21 Jun 2022 19:18:31 +0800 (CST) Received: from lhreml724-chm.china.huawei.com (10.201.108.75) by fraeml742-chm.china.huawei.com (10.206.15.223) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Tue, 21 Jun 2022 13:22:22 +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; Tue, 21 Jun 2022 12:22:17 +0100 From: John Garry To: , , , , , , , , , CC: , , , , , , , , , , John Garry Subject: [PATCH v2 4/6] scsi: fnic: Drop reserved request handling Date: Tue, 21 Jun 2022 19:15:41 +0800 Message-ID: <1655810143-67784-5-git-send-email-john.garry@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1655810143-67784-1-git-send-email-john.garry@huawei.com> References: <1655810143-67784-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 --- 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.25.1