lkml.org 
[lkml]   [2023]   [Sep]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 2/2] scsi: Add comment of target_destroy in scsi_host_template
    Date
    Add comment to tell callback function target_destroy of
    scsi_host_template is called in atomic context.

    Signed-off-by: Wenchao Hao <haowenchao2@huawei.com>
    ---
    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
    + *
    * Status: OPTIONAL
    */
    void (* target_destroy)(struct scsi_target *);
    --
    2.32.0
    \
     
     \ /
      Last update: 2023-09-22 16:30    [W:4.509 / U:0.476 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site