Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3731089rdg; Wed, 18 Oct 2023 04:38:52 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHgVag7NRWqRKyIq/qD0Ch1nSvCIL3jvDBZ7L0a+ZNipPFhITv3NBum+b64P6sU6y26I3SH X-Received: by 2002:a17:90b:886:b0:27d:9f6:47a3 with SMTP id bj6-20020a17090b088600b0027d09f647a3mr4783949pjb.31.1697629132563; Wed, 18 Oct 2023 04:38:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697629132; cv=none; d=google.com; s=arc-20160816; b=HsfkBAYimBm+ZWe5FEH3U5+BFYDKR0vCpuNmdG9+pf8/w3MxT02BqR3dEC0g+CSoqo ak2Tx1JwD+TdHOTgTx/leKyVM09XY6cbpXdAIvOCbbohQce1EAj/zD5I99fYdlffbvmz rtOg8ng6T9jVbzqoF53LN4JJ4NbqbnqDyS7ptzfYVtS6kXT3cIUOvy80m54MO3yLMTGC unHe17zOSMEHNSgtlF5oazrj7ouT1GfwIbWA4+98YXBaCCKVls1tSsp4qHQLu/pNxhwH bn7Blv8tBTIle123VMvQ5liGHEtTTOsZ80PI7NDBjy70j5TsHDuZJ1xBJt0/iLuoRA4s g9Hw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=1pZDs/s5AomhMzui9dqhDW4eUjvM16hLt14xCE41J/Y=; fh=eCnJ8dvt+KkuS6aWX+B9QrxoJYHNRCqsmb8Kf0CFQHo=; b=Ax8zF2ORLLZHj2pZ2QhPoVWZq7PrUkjlvMpPfTei82aJ1gKRuUizjYgvtSFQcw/ZR9 iWilkksv9VJkgKvWVQZZ0jX1peIPalpyc52vsbDPqvhnVgQSRwSD1w/Qg3M5MD6/m0rQ w1qCdneob9WTKMgDXho0CYFqTdhtXz0YZ/8CGgBEpgy/Qby8BtzmMA/qvTkf/ihCJVM5 NvTLV1Duswr4O9OEWOGRe8by116n/+C8R3VPpE0L04QxSC80Af22S23pXzszVIbtJZb5 FB6RVAZ07L2bWEc1NCwDE/q/DyM1CvPx2hGrJ3pqBNc/qwSGmjm5iRyefQ/xRAgTfrV3 1Drg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id u17-20020a656711000000b0059f0cebd052si1929603pgf.436.2023.10.18.04.38.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 04:38:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (Postfix) with ESMTP id D76F880A7705; Wed, 18 Oct 2023 04:38:47 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235206AbjJRLid (ORCPT + 99 others); Wed, 18 Oct 2023 07:38:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53644 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235197AbjJRLiQ (ORCPT ); Wed, 18 Oct 2023 07:38:16 -0400 Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 76BA810C1; Wed, 18 Oct 2023 04:38:04 -0700 (PDT) Received: from kwepemm000012.china.huawei.com (unknown [172.30.72.55]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4S9TKz2WF6z15NQC; Wed, 18 Oct 2023 19:35:19 +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; Wed, 18 Oct 2023 19:38:01 +0800 From: Wenchao Hao To: "Martin K . Petersen" , Bart Van Assche CC: "James E . J . Bottomley" , , , , Wenchao Hao Subject: [PATCH v3 2/2] scsi: Add comment of target_destroy in scsi_host_template Date: Wed, 18 Oct 2023 19:37:46 +0800 Message-ID: <20231018113746.1940197-3-haowenchao2@huawei.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20231018113746.1940197-1-haowenchao2@huawei.com> References: <20231018113746.1940197-1-haowenchao2@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.101.6] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) 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 howler.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 (howler.vger.email [0.0.0.0]); Wed, 18 Oct 2023 04:38:48 -0700 (PDT) Add comment to tell callback function target_destroy of scsi_host_template must not sleep. Signed-off-by: Wenchao Hao --- include/scsi/scsi_host.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/scsi/scsi_host.h b/include/scsi/scsi_host.h index 49f768d0ff37..2c61dd30d766 100644 --- a/include/scsi/scsi_host.h +++ b/include/scsi/scsi_host.h @@ -245,6 +245,9 @@ struct scsi_host_template { * midlayer calls this point so that the driver may deallocate * and terminate any references to the target. * + * Note: This callback is called with the host lock held and hence + * must not sleep. + * * Status: OPTIONAL */ void (* target_destroy)(struct scsi_target *); -- 2.32.0