Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp2242442rdg; Sun, 15 Oct 2023 19:09:37 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGFTfnbCpuBfL7zC6xm8Zgj4IuXcPRdctegYtEI5NfxrcC2NgbbESaWAwyR/OLIoNN4T2sg X-Received: by 2002:a05:6358:918c:b0:14e:28f9:53fd with SMTP id j12-20020a056358918c00b0014e28f953fdmr32463938rwa.15.1697422176878; Sun, 15 Oct 2023 19:09:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697422176; cv=none; d=google.com; s=arc-20160816; b=Mh0aLQHpXVPCHirmxzeAMBtZBPIFCWOQSU9L2imZPVXUgXDFxtJA5CtSXKo3+QTnkN aGtUNQqUzoXjT/GoEgcSVEM3CB7zp9EFjqC572s/xQl1S87OGctXq7PluxOYt9d0IC6S bcEavE/mvxjK0Fayo0402qXnoiRWjV5b57JjJZsZljfa78THFosXbNxhCY32qn2hDtcp folyENSdYkwINo3q9cbY6ldQz/58acWtTII6j6JOvPMDC0OE9FVyFiT2Ih3wwOK/1N+r EaKH2pubGXNg2K9z/wsiWUj6SgGzzLOIrjhlhshMx5bZmvU7l4I/I6SX7xRwO0jzx55a 8SgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=7fE/Rf0mwpj/LZXZVrojRqMvjFqWVsUDJVYJ3B+0kKY=; fh=ZDcIlyYggP5K3GvQBQF3K/GzUnCJV+bQb/1GDPxM7E4=; b=YhW6zL20m9EArRDw4WAbZN7NUqe7jTYw3lCztnnbjSJioDo60E1g/SzEjmWMow59Pb 8s15DCiR6rGXREswLNCGVkuGBVLMcx495KD2kC9BnwibwzQ6mYXWkMp6kbL5iefjMamF xK8J+xbzarsm0WXEW8IYWv+5EB16q+x7nvDein+MsCaRO+9JlUkokL6qRHOYlqzpJWXJ JfoEAgulPGGeyGEmzJ1InJaQbecR54E5oBJXEB9N5ZICMUgQr63A/KeOKJ2UeEjshuGL A16O7CtiQkufpO00zA2HkBIhKVMVFxg0tXn286AuD9wzbWwmno3sqtW2ZF1p2okTiaIz udeQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id u128-20020a627986000000b006b356972cf7si6293811pfc.392.2023.10.15.19.09.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Oct 2023 19:09:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id C7C27804787A; Sun, 15 Oct 2023 19:09:34 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231325AbjJPCJI (ORCPT + 99 others); Sun, 15 Oct 2023 22:09:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230478AbjJPCJG (ORCPT ); Sun, 15 Oct 2023 22:09:06 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E216C1; Sun, 15 Oct 2023 19:09:04 -0700 (PDT) Received: from kwepemm000012.china.huawei.com (unknown [172.30.72.55]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4S80m20RQdzvQ2W; Mon, 16 Oct 2023 10:04:18 +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; Mon, 16 Oct 2023 10:08:59 +0800 From: Wenchao Hao To: "James E . J . Bottomley" , "Martin K . Petersen" , CC: , , Wenchao Hao Subject: [PATCH v2 0/2] cleanup patch Date: Mon, 16 Oct 2023 10:08:45 +0800 Message-ID: <20231016020847.1270258-1-haowenchao2@huawei.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.101.6] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To kwepemm000012.china.huawei.com (7.193.23.142) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Sun, 15 Oct 2023 19:09:34 -0700 (PDT) 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. V2: - Tell which spinlock is held in comment of target_destroy 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(-) -- 2.32.0