From patchwork Wed Sep 19 03:31:59 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jason Yan X-Patchwork-Id: 10605227 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 D2B8C5A4 for ; Wed, 19 Sep 2018 03:33:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C2D562A553 for ; Wed, 19 Sep 2018 03:33:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B6B8F2AF30; Wed, 19 Sep 2018 03:33:22 +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 6EEA12A553 for ; Wed, 19 Sep 2018 03:33:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730845AbeISJJJ (ORCPT ); Wed, 19 Sep 2018 05:09:09 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:55029 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725875AbeISJIt (ORCPT ); Wed, 19 Sep 2018 05:08:49 -0400 Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 42AF18D49A3FD; Wed, 19 Sep 2018 11:32:55 +0800 (CST) Received: from huawei.com (10.175.124.28) by DGGEMS414-HUB.china.huawei.com (10.3.19.214) with Microsoft SMTP Server id 14.3.399.0; Wed, 19 Sep 2018 11:32:46 +0800 From: Jason Yan To: , CC: , , , , , , , , , , , Jason Yan Subject: [PATCH v2 0/5] scsi: libsas: some code cleanups and bug fixes Date: Wed, 19 Sep 2018 11:31:59 +0800 Message-ID: <20180919033204.11102-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. Jason Yan (5): scsi: libsas: delete dead code in scsi_transport_sas.c scsi: libsas: check the lldd callback correctly 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(-)