From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1E2E9C433DF for ; Wed, 22 Jul 2020 09:06:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 016E3206E3 for ; Wed, 22 Jul 2020 09:06:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731242AbgGVJGD (ORCPT ); Wed, 22 Jul 2020 05:06:03 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:51980 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728642AbgGVJGC (ORCPT ); Wed, 22 Jul 2020 05:06:02 -0400 Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id D540A48C73173991CFE3; Wed, 22 Jul 2020 17:05:59 +0800 (CST) Received: from huawei.com (10.69.192.56) by DGGEMS414-HUB.china.huawei.com (10.3.19.214) with Microsoft SMTP Server id 14.3.487.0; Wed, 22 Jul 2020 17:05:51 +0800 From: Luo Jiaxing To: , CC: , , , , , , Subject: [PATCH v1 0/2] scsi: libsas: An improvement on error handle and tidy-up Date: Wed, 22 Jul 2020 17:04:01 +0800 Message-ID: <1595408643-63011-1-git-send-email-luojiaxing@huawei.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.69.192.56] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch introduces an improvement to reduce error handle time and a tidy-up, including: - postreset() is deleted from sas_sata_ops. - Do not perform hard reset and delayed retry on a removed SATA disk. This can effectively reduce the error handle duration of hot unplug a SATA disk with traffic(reduce about 30s depending on the delay setting of libata). Both John garry and Jason Yan participated in the review of the solution and provided good suggestions during the development. Luo Jiaxing (2): {topost} scsi: libsas: delete postreset at sas_sata_ops {topost} scsi: libsas: check link status at ATA prereset() ops drivers/scsi/libsas/sas_ata.c | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) -- 2.7.4