]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
scsi: target: Allow userspace to set the completion type
authorMike Christie <michael.christie@oracle.com>
Sun, 22 Feb 2026 23:27:03 +0000 (17:27 -0600)
committerMartin K. Petersen <martin.petersen@oracle.com>
Sun, 1 Mar 2026 02:04:03 +0000 (21:04 -0500)
commite1502d990c8e26fa679b3253ff7db51483e6eb82
tree64c8c8447df1183de801b98f03a33dba38c2d390
parent89663fb2e53822863de9cf4bca9636989da96615
scsi: target: Allow userspace to set the completion type

This allows userspace to request if we complete in the backend context
or the frontend driver. It works the same as submission where you can
write 0 to 2 to complete_type:

 0 - Use the fabric driver's preference.

 1 - Complete from the backend calling context if the fabric supports
     it.

 2 - Queue the completion to LIO's completion workqueue.

Signed-off-by: Mike Christie <michael.christie@oracle.com>
Link: https://patch.msgid.link/20260222232946.7637-4-michael.christie@oracle.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/target/target_core_configfs.c
drivers/target/target_core_fabric_configfs.c