From patchwork Tue Sep 25 02:56:49 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jason Yan X-Patchwork-Id: 10613269 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 260F36CB for ; Tue, 25 Sep 2018 02:44:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 17A982A197 for ; Tue, 25 Sep 2018 02:44:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0BFD72A1B5; Tue, 25 Sep 2018 02:44:00 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A32B12A191 for ; Tue, 25 Sep 2018 02:43:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727654AbeIYIsm (ORCPT ); Tue, 25 Sep 2018 04:48:42 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:12689 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727410AbeIYIsm (ORCPT ); Tue, 25 Sep 2018 04:48:42 -0400 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 41A541959E2F3; Tue, 25 Sep 2018 10:43:22 +0800 (CST) Received: from huawei.com (10.175.124.28) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.399.0; Tue, 25 Sep 2018 10:43:16 +0800 From: Jason Yan To: , CC: , , , , , , , , , , , Jason Yan Subject: [PATCH v3 0/5] scsi: libsas: some code cleanups and bug fixes Date: Tue, 25 Sep 2018 10:56:49 +0800 Message-ID: <20180925025654.44053-1-yanaijie@huawei.com> X-Mailer: git-send-email 2.14.4 MIME-Version: 1.0 X-Originating-IP: [10.175.124.28] X-CFilter-Loop: Reflected Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP I split some code cleanups and bug fixes patches from my earlier series: https://lkml.org/lkml/2018/5/28/2154 These patches are separate to the subject of the earlier series and are just small fixes. Hope it is much easier to review and test. v2: fix some typos and add reviewed-by tags. v3: change the wording suggested by Christoph Hellwig. Jason Yan (5): scsi: libsas: delete dead code in scsi_transport_sas.c scsi: libsas: make the lldd_port_deformed method optional scsi: libsas: always unregister the old device if going to discover new scsi: libsas: check the ata device status by ata_dev_enabled() scsi: libsas: fix a race condition when smp task timeout drivers/scsi/hisi_sas/hisi_sas_main.c | 9 ++------- drivers/scsi/libsas/sas_ata.c | 2 +- drivers/scsi/libsas/sas_discover.c | 2 +- drivers/scsi/libsas/sas_expander.c | 22 +++++++++------------- drivers/scsi/scsi_transport_sas.c | 2 -- 5 files changed, 13 insertions(+), 24 deletions(-)