Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp5400454rwj; Wed, 21 Dec 2022 02:02:36 -0800 (PST) X-Google-Smtp-Source: AMrXdXvjC9IZtGZn0ODrAJWxjy+OjzMrerHTcm3wNjLH2mNhIGONE0fgh0sN2eCzdtubG4J6Q11z X-Received: by 2002:a17:902:f08a:b0:189:c19a:2cd9 with SMTP id p10-20020a170902f08a00b00189c19a2cd9mr1425487pla.25.1671616955922; Wed, 21 Dec 2022 02:02:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671616955; cv=none; d=google.com; s=arc-20160816; b=FlB2v3sOprzDtvJHjQp+dA2L5X0TqJGtnoK1vJtks7KqIZKM7iJtV21Z2Yez9eQGVm pGY/zq5iBXHuLydzDidcpX+U2JAZb+pMBK0xW8HRcP/002i120QOk17TZ+etSSxZhdk/ 2fmB2tbyZaUr5UY820JKpgUkw1qtocQDnMFtbIhbcDYwzY3IwyU0bQov2+4G7SPEMB24 E0wX/HO4871HCPBOigIDv7u/foHlubOlqUXkPz120y8b1gO/qmh7Cl9XE2TqNc2tu1+k GBvgF9ayXzDYa8cGYYsjWorKREsTG63Yha8k/7PgxiHGCphgu1LpEtTBgpeoYE9y4x0V khkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=pYrcSo3Hc7X3xYEAVqtq//LPByEiamB6+13BCPVmShY=; b=e9hGJqK7Hqx3c55QNed9APi4f+q5H98NV02kYuFfEQwjPVxKdKUFtJVnkVPnN0JSfQ /XhdN9DHT3sdPoIcHsjcglAoogdz8UGwOIBdUOoE3Y5O/OtfPQtM6LNiHEkozWQZjxMY hXvZ8d86HQWC+zwKXL5uKtHpKYZPYZ8oZkD0KDB1UBNbwOPuIBe9xJp1nGbszTP1MniS 6m9f5LsigaROJZQZbnyv4mbahg2IOLlaadpNZRt0JPtPk/9KirzrqrNU2q96+lPV3894 Naz6innLm4+w4LvWpRRA1sxMx97Jnu5CiDr5B+qO2OxNwIovthO8CyTCsvVA7/zTYRYj m9rg== 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 j17-20020a170903029100b0019246b52629si875720plr.604.2022.12.21.02.02.26; Wed, 21 Dec 2022 02:02:35 -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 S234537AbiLUJcD (ORCPT + 69 others); Wed, 21 Dec 2022 04:32:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45756 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233998AbiLUJbx (ORCPT ); Wed, 21 Dec 2022 04:31:53 -0500 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9C96318385; Wed, 21 Dec 2022 01:31:49 -0800 (PST) Received: from dggpemm500012.china.huawei.com (unknown [172.30.72.57]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4NcSlG55HvzqT5Y; Wed, 21 Dec 2022 17:27:22 +0800 (CST) Received: from localhost.localdomain (10.67.165.24) by dggpemm500012.china.huawei.com (7.185.36.89) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Wed, 21 Dec 2022 17:31:47 +0800 From: Xingui Yang To: , , CC: , , , , , Subject: [PATCH v3 0/3] Directly kick-off EH when device removed with active IO Date: Wed, 21 Dec 2022 09:25:11 +0000 Message-ID: <20221221092514.4091-1-yangxingui@huawei.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.165.24] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To dggpemm500012.china.huawei.com (7.185.36.89) 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 The following patches solve the age-old problem - that is, EH eventually kicking in only after 30 seconds when a disk is removed with active IO. This series add a new libsas API - sas_device_task_abort() - to abort device active io and define a interface lldd_device_task_abort() for LLDD to implement. Changes since v2: - Support both for sas and sata device - Add a new libsas API - LLDD implement lldd_device_task_abort() Xingui Yang (3): scsi: libsas: Add sas_device_task_abort() scsi: libsas: Directly kick-off EH when device removed with active IO scsi: hisi_sas: Implement lldd_device_task_abort() drivers/scsi/hisi_sas/hisi_sas_main.c | 19 +++++++++++++++++++ drivers/scsi/libsas/sas_discover.c | 3 +++ drivers/scsi/libsas/sas_scsi_host.c | 9 +++++++++ include/scsi/libsas.h | 2 ++ 4 files changed, 33 insertions(+) -- 2.17.1