Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3976777rdg; Wed, 18 Oct 2023 11:04:18 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHuW0cRPQSYspsgFrkyIy7lbG5WQUj0baQ/mBPaY+VwaPmMaa3Ae82GsMiJezsjhrepb/Wy X-Received: by 2002:a17:903:124f:b0:1c9:e774:58d9 with SMTP id u15-20020a170903124f00b001c9e77458d9mr140361plh.34.1697652258600; Wed, 18 Oct 2023 11:04:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697652258; cv=none; d=google.com; s=arc-20160816; b=fjGCAI4qqxk5vjWMuKDKVfROryq4UeuRiq/u2qNLTpLMRHVjoTea3FdZ+nkpbWLCps qlSF3aG2I8nW//k5DHQlL139EhYkCiXfWZ6tPDvgjc/es/ieOleJAIn8Zqsr1gVCj+bC +vxg9QowMA7KYVP4MaajTUtPxcUsVWvvn3sSuVkQ5CmEuii9QjysJrLJEgST2NcdkiJx gmlSv8P1HF5bQ+oDtIGh3szeqDqla9+0q6TA5IqWTJLxNmiANSt+7NBUsNH49l0jLDs5 VbUb/fwZt7EJpEX4ufN68hX3LI5mpNgO68P4xnd5NZJzcznaKz2Qp8o7ieOemhivq7ip hEDg== 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=tGtc16Y54tmWQFTxFEcgYXLtPtjRRt1opEDzmPQ+grk=; fh=HjeZVnvlent4ioyxtJ440TePZgJntMY11WCwnE9DGtE=; b=K/YSYWCfN0y6e5qRyQBQ3QJElaXRKS4lFjZ/O0IUU3BsPbZ+WheOmVmDqd12lQWIeT WU/zRyp3izeGm7O8qrJl+4ryxcK3Yj3RbhSIA7oTAPmJ77/PnPrEp6CwMHat+Eh1IE/F B58j0fy56ut0Vudhs/b3dyK/UUbzcvYQ6aZhGngH63IO+2hBnYRSEiLVkt/29xYojFmL dTZ2FZnR7dxRQZghjYhFGKErIZBS8b39PzYNzn7y+0ctiRjpWEJ3wcDqsQTI8tU5ejR4 d0GIrgxdTicH2fkzFQPdb9EnlqBbP0TjdhixPdN+Mif2Nvik4RGs1pPCCewtFGxpISP5 qX/A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id d8-20020a170902654800b001c1e4f9c63esi347454pln.491.2023.10.18.11.04.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 11:04:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (Postfix) with ESMTP id 690EE8069265; Wed, 18 Oct 2023 11:04:13 -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 S231285AbjJRSEG (ORCPT + 99 others); Wed, 18 Oct 2023 14:04:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59938 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344731AbjJRSEB (ORCPT ); Wed, 18 Oct 2023 14:04:01 -0400 Received: from mail-pj1-f42.google.com (mail-pj1-f42.google.com [209.85.216.42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A8F81F7; Wed, 18 Oct 2023 11:03:59 -0700 (PDT) Received: by mail-pj1-f42.google.com with SMTP id 98e67ed59e1d1-27d23f1e3b8so5401427a91.1; Wed, 18 Oct 2023 11:03:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697652239; x=1698257039; 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=tGtc16Y54tmWQFTxFEcgYXLtPtjRRt1opEDzmPQ+grk=; b=mtJM6o5IxekjyZZ5UAcC3XdW79rBmkZ35I1ebKqJkK4mH6qx18/Rrpb8R7iR0qHcQP aw9924WQJdNX92tYfWc7RNPsBshvH3tzmBlwuGh6FcC0nmPcUJGHX2ZCtkgp3TlINMYn +l936SOyb+A2zvL6GTYHhYro4e/A6eT/reVyo07I1ITp/mZq8Zsb242rf4ED0yUwjHWE yHo6DREhS081NYBnzCeGZRcwLSIESAYE9LvNOLBex88dk2smyhlOVkpKvj5V0eB9ktZq LymsfKXHDcN3a3YZ3dmTY0O+POr0w00wMuqGFSDecm6uaYc7ZR5RquAERbmX9UPeQ1l6 rNoQ== X-Gm-Message-State: AOJu0YzpuozOLDf6hQZHYeBeMjX6m8fjVzQe8M043+vUpbwnCokBQ25Y jkpDRgXYZrNMTCOgdhifups= X-Received: by 2002:a17:90b:a43:b0:27d:4283:b8a2 with SMTP id gw3-20020a17090b0a4300b0027d4283b8a2mr5836706pjb.14.1697652239038; Wed, 18 Oct 2023 11:03:59 -0700 (PDT) Received: from ?IPV6:2620:15c:211:201:66c1:dd00:1e1e:add3? ([2620:15c:211:201:66c1:dd00:1e1e:add3]) by smtp.gmail.com with ESMTPSA id 24-20020a17090a191800b00279479e9105sm240995pjg.2.2023.10.18.11.03.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 18 Oct 2023 11:03:58 -0700 (PDT) Message-ID: <58513668-33ae-4375-92cd-96a4d9a4a67f@acm.org> Date: Wed, 18 Oct 2023 11:03:57 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 2/2] scsi: Add comment of target_destroy in scsi_host_template Content-Language: en-US To: Wenchao Hao , "Martin K . Petersen" Cc: "James E . J . Bottomley" , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, louhongxiang@huawei.com References: <20231018113746.1940197-1-haowenchao2@huawei.com> <20231018113746.1940197-3-haowenchao2@huawei.com> From: Bart Van Assche In-Reply-To: <20231018113746.1940197-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 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]); Wed, 18 Oct 2023 11:04:13 -0700 (PDT) On 10/18/23 04:37, Wenchao Hao wrote: > 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 *); Reviewed-by: Bart Van Assche