diff options
author | Wenchao Hao <haowenchao2@huawei.com> | 2023-10-18 19:37:46 +0800 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2023-10-24 22:31:04 -0400 |
commit | 82f52b2cd5fccc61290e14c970f1280791ca4dee (patch) | |
tree | b18d9e7f915fc1261bc8d845acab04b3dd5e1990 /include/scsi | |
parent | 3dc985bfbd00e1fb3dac4b1359efd6b71855b81f (diff) | |
download | linux-82f52b2cd5fccc61290e14c970f1280791ca4dee.tar.gz linux-82f52b2cd5fccc61290e14c970f1280791ca4dee.tar.bz2 linux-82f52b2cd5fccc61290e14c970f1280791ca4dee.zip |
scsi: core: Add comment to target_destroy in scsi_host_template
Add comment to indicate that the callback function target_destroy in the
scsi_host_template must not sleep.
Signed-off-by: Wenchao Hao <haowenchao2@huawei.com>
Link: https://lore.kernel.org/r/20231018113746.1940197-3-haowenchao2@huawei.com
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'include/scsi')
-rw-r--r-- | include/scsi/scsi_host.h | 3 |
1 files changed, 3 insertions, 0 deletions
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 *); |