From patchwork Fri Sep 22 09:38:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wenchao Hao X-Patchwork-Id: 725555 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7175ECD4F45 for ; Fri, 22 Sep 2023 09:39:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233262AbjIVJjO (ORCPT ); Fri, 22 Sep 2023 05:39:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233213AbjIVJjN (ORCPT ); Fri, 22 Sep 2023 05:39:13 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 22ACA197; Fri, 22 Sep 2023 02:39:07 -0700 (PDT) Received: from kwepemm000012.china.huawei.com (unknown [172.30.72.57]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4RsRtw6W6sztS8N; Fri, 22 Sep 2023 17:34:48 +0800 (CST) Received: from build.huawei.com (10.175.101.6) by kwepemm000012.china.huawei.com (7.193.23.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.31; Fri, 22 Sep 2023 17:39:04 +0800 From: Wenchao Hao To: "James E . J . Bottomley" , "Martin K . Petersen" , , CC: , , Wenchao Hao Subject: [PATCH 0/2] cleanup patch Date: Fri, 22 Sep 2023 17:38:40 +0800 Message-ID: <20230922093842.2646157-1-haowenchao2@huawei.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 X-Originating-IP: [10.175.101.6] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To kwepemm000012.china.huawei.com (7.193.23.142) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org This is a cleanup patchset, no logic changed. The first patch just cleanup scsi_dev_queue_ready(); The second patch add comment for target_destroy callback of scsi_host_template to tell it is called in atomic context. Wenchao Hao (2): scsi: core: cleanup scsi_dev_queue_ready() scsi: Add comment of target_destroy in scsi_host_template drivers/scsi/scsi_lib.c | 35 ++++++++++++++++++----------------- include/scsi/scsi_host.h | 3 +++ 2 files changed, 21 insertions(+), 17 deletions(-)