linux/include/target
Mike Christie eb44ce8c8c scsi: target: core: Add workqueue based cmd submission
loop and vhost/scsi do their target cmd submission from driver
workqueues. This allows them to avoid an issue where the backend may block
waiting for resources like tags/requests, mem/locks, etc and that ends up
blocking their entire submission path and for the case of vhost-scsi both
the submission and completion path.

This patch adds a helper drivers can use to submit from a LIO workqueue.
This code will then be extended in the next patches to fix the plugging of
backend devices.

We are only converting vhost/loop initially, but the workqueue based
submission will work for other drivers and have similar benefits where the
main target loops will not end up blocking one some backend resource.

Link: https://lore.kernel.org/r/20210227170006.5077-17-michael.christie@oracle.com
Tested-by: Laurence Oberman <loberman@redhat.com>
Reviewed-by: Bodo Stroesser <bostroesser@gmail.com>
Signed-off-by: Mike Christie <michael.christie@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2021-03-04 17:37:02 -05:00
..
iscsi scsi: target: Make iscsit_register_transport() return void 2020-08-04 20:56:56 -04:00
target_core_backend.h scsi: target: core: Add cmd length set before cmd complete 2021-02-22 22:21:29 -05:00
target_core_base.h scsi: target: core: Add workqueue based cmd submission 2021-03-04 17:37:02 -05:00
target_core_fabric.h scsi: target: core: Add workqueue based cmd submission 2021-03-04 17:37:02 -05:00