Skip to content

Commit 82f52b2

Browse files
wenchao-haomartinkpetersen
authored andcommitted
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>
1 parent 3dc985b commit 82f52b2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

include/scsi/scsi_host.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,9 @@ struct scsi_host_template {
245245
* midlayer calls this point so that the driver may deallocate
246246
* and terminate any references to the target.
247247
*
248+
* Note: This callback is called with the host lock held and hence
249+
* must not sleep.
250+
*
248251
* Status: OPTIONAL
249252
*/
250253
void (* target_destroy)(struct scsi_target *);

0 commit comments

Comments
 (0)