Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp2776429rdb; Fri, 22 Sep 2023 08:07:25 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGhCZ12osRiYqIxmClbdxrcGsZkmaU6H8Ck+FZ1bCBNc/mSQ0tI3l0jcH6chF9LrBhL76Dr X-Received: by 2002:a17:902:ea05:b0:1bf:3c10:1d70 with SMTP id s5-20020a170902ea0500b001bf3c101d70mr8980233plg.6.1695395244736; Fri, 22 Sep 2023 08:07:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695395244; cv=none; d=google.com; s=arc-20160816; b=lVSz94cLNPQcuezuuHJgzHJ4gpgMH13VjK/sF66xDklooovL4golIsC4ykBCN7zj8s QdbgjGCusfZVLgV0Wc+KM99Qxb16Bee9ee0043MpPFc+RDks1QIbU/xJ/oAs1il0kAd7 r6buJep5MPomkwC3piPKjaAPyIWj7OaMd9gMLJF/WLz/gyD3Yo3UEfSULOBe9ACfORiO ejIdT2tETZZs0eBGIN8J9GHhj2PaG08FCpDf4/NUR95DhwxQ7vnZUt89einPrKK03Z6A bJCtaZdgJtnNesUClvJeIOkJCjymz96Rvof3YpqvPxApiRAit9vCCPs4vVUaXFaGo61f iE8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=fQ2DQQsTYbmNxZeLx7w+/PCwlM9kvekCBTcVZGvkVac=; fh=UEpFMKOqyweapDowiE7VvOt2ySza3HVObMQ+Ezn7xQ0=; b=m0jODrWljQSoBgOQczfK4+CyYJjJmnCR72gVPO09KJr+Cvgve/uOaYmm1NsL4nUWWf 9rgkJPRU26r2gzIw51bTymvn5Eutp7x0bPl/+IdFh3yLUcQYypL3Iw5NmCi4SmMgwKRM D3InWcLCRBT+Z66F+abHtHVojdUC3Icmzj2G0vtOWnYIk5TWcpmnS+e4TQkQw6BhnVug 5At/+Bfm309J3Qxh1tb0Y7EC2DE0J3XJlKIbxL5z/aluCcNf1FuS1YBftDnzHh5FvmrO OkmYHEI4IvGNkedVcFSTLupeLIBGZNnX5P3DC4142/eQ5+mDYVdE1XnvH31BBD+rg301 SLmQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=acm.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id t16-20020a170902e85000b001c1e4f9c63esi4293372plg.491.2023.09.22.08.07.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Sep 2023 08:07:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=acm.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id A509E82990EB; Fri, 22 Sep 2023 07:53:32 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231912AbjIVOxV (ORCPT + 99 others); Fri, 22 Sep 2023 10:53:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45194 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231947AbjIVOxQ (ORCPT ); Fri, 22 Sep 2023 10:53:16 -0400 Received: from mail-pl1-f169.google.com (mail-pl1-f169.google.com [209.85.214.169]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A2DD21AD; Fri, 22 Sep 2023 07:53:10 -0700 (PDT) Received: by mail-pl1-f169.google.com with SMTP id d9443c01a7336-1c451541f23so18777655ad.2; Fri, 22 Sep 2023 07:53:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695394390; x=1695999190; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=fQ2DQQsTYbmNxZeLx7w+/PCwlM9kvekCBTcVZGvkVac=; b=qOsNskEaokb1k9x2ysPWd2V7qyzRYnPXPU/Orkpw0a1Ozd9jJ5Q99z16puor1F4/5K UxGi1nRd0hMWqubkK6TeWDV7q5ihbBWJEI1Tu1653x9h7xmUPyAqojFq3KeFTN3oQaM7 0LKE1D8YqGedICo1W4eAguj4LUo+RC8h/z8Y7SJ05DouOUt74CA76LeK96GWY2maVdCd SmNOPNEVNrjdQyV6IiA9MZlPkno/hXCEaJSaST9JQ7EsAFJX3GgZVRG9+tpnmbouIC+u 8dy7NY5aA/M++A4IJWg0uZTrV8Bg6yTAGVpZNG4pba38SIYCaYNgsQkjc9snd0jxhJMU kR9Q== X-Gm-Message-State: AOJu0Yxx15lW1cVYubnKgCLnTxBuFTfRM7/NttdOPKC1X2Q2zgqps6lt h/Os7mQEUM37v6UpbDiTjso= X-Received: by 2002:a17:903:44a:b0:1c4:e69:42c3 with SMTP id iw10-20020a170903044a00b001c40e6942c3mr7655057plb.43.1695394389911; Fri, 22 Sep 2023 07:53:09 -0700 (PDT) Received: from ?IPV6:2620:15c:211:201:70e9:c86f:4352:fcc? ([2620:15c:211:201:70e9:c86f:4352:fcc]) by smtp.gmail.com with ESMTPSA id ay6-20020a1709028b8600b001b53c8659fesm3546667plb.30.2023.09.22.07.53.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 22 Sep 2023 07:53:09 -0700 (PDT) Message-ID: <9567a78a-baf8-432b-b279-cfc56d370a1d@acm.org> Date: Fri, 22 Sep 2023 07:53:08 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 2/2] scsi: Add comment of target_destroy in scsi_host_template Content-Language: en-US To: Wenchao Hao , "James E . J . Bottomley" , "Martin K . Petersen" , open-iscsi@googlegroups.com, linux-scsi@vger.kernel.org Cc: linux-kernel@vger.kernel.org, louhongxiang@huawei.com References: <20230922093842.2646157-1-haowenchao2@huawei.com> <20230922093842.2646157-3-haowenchao2@huawei.com> From: Bart Van Assche In-Reply-To: <20230922093842.2646157-3-haowenchao2@huawei.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Fri, 22 Sep 2023 07:53:32 -0700 (PDT) On 9/22/23 02:38, Wenchao Hao wrote: > Add comment to tell callback function target_destroy of > scsi_host_template is called in atomic context. > > 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..a72248fa5adf 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 in called with spin_lock held, so donot > + * call functions might cause schedule > + * This comment should mention which spinlock is held. Thanks, Bart.