linux/drivers/target/tcm_fc
Mike Christie 194605d45d scsi: target: Have drivers report if they support direct submissions
In some cases, like with multiple LUN targets or where the target has to
respond to transport level requests from the receiving context it can be
better to defer cmd submission to a helper thread. If the backend driver
blocks on something like request/tag allocation it can block the entire
target submission path and other LUs and transport IO on that session.

In other cases like single LUN targets with storage that can support all
the commands that the target can queue, then it's best to submit the cmd
to the backend from the target's cmd receiving context.

Subsequent commits will allow the user to config what they prefer, but
drivers like loop can't directly submit because they can be called from a
context that can't sleep. And, drivers like vhost-scsi can support direct
submission, but need to keep their default behavior of deferring execution
to avoid possible regressions where the backend can block.

Make the drivers tell LIO core if they support direct submissions and their
current default, so we can prevent users from misconfiguring the system and
initialize devices correctly.

Signed-off-by: Mike Christie <michael.christie@oracle.com>
Link: https://lore.kernel.org/r/20230928020907.5730-2-michael.christie@oracle.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2023-10-13 15:53:57 -04:00
..
Kconfig
Makefile
tcm_fc.h scsi: target: fcoe: Remove default fabric ops callouts 2023-03-16 23:36:36 -04:00
tfc_cmd.c scsi: target: fcoe: Remove default fabric ops callouts 2023-03-16 23:36:36 -04:00
tfc_conf.c scsi: target: Have drivers report if they support direct submissions 2023-10-13 15:53:57 -04:00
tfc_io.c scsi: libfc: Move scsi/fc_encode.h to libfc 2020-10-29 21:49:25 -04:00
tfc_sess.c scsi: target: tcm_fc: Fix a kernel-doc header 2021-04-15 22:44:41 -04:00