scsi: target: Allow userspace to config cmd submission
Status from this message: Applied to 6.7/scsi-staging, thanks!
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest8 patches 2 repliesApplied
- v15 patches 2 repliesSuperseded
Changes in v2 from the cover letter
- Use sysfs_emit.
- Add iSCSI target support so now all targets are supported.
Patches in v2 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/8 | scsi: target: Make write_pending_must_be_called a bit fielddrivers/ include/ | +3 | 0 replies | |
| 2/8 | scsi: target: Have drivers report if they support direct submissionsdrivers/ drivers/ drivers/ +10 more | +55 | 0 replies | |
| 3/8 | target: Move core_alua_check_nonop_delay calldrivers/ drivers/ drivers/ +1 more | +6 | 0 replies | |
| 4/8 | target: Move buffer clearing hackdrivers/ | +21 | 0 replies | |
| 5/8 | target: Kill transport_handle_cdb_directdrivers/ drivers/ drivers/ +1 more | +11 | 0 replies | |
| 6/8 | scsi: target: Allow userspace to request direct submissionsdrivers/ drivers/ drivers/ +3 more | +57 | 0 replies | |
| 7/8 | scsi: target: Unexport target_queue_submissiondrivers/ include/ | +1 | 0 replies | |
| 8/8 | scsi: target: Export fabric driver direct submit settingsdrivers/ | +24 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCH v2 0/8] scsi: target: Allow userspace to config cmd submission
The following patches were made over Linus's tree but apply over Martin's branches. They allow userspace to configure how fabric drivers submit cmds to backend drivers.
Right now loop and vhost use a worker thread, and the other drivers submit from the contexts they receive/process the cmd from. For multiple LUN cases where the target can queue more cmds than the backend can handle then deferring to a worker thread is safest because the backend driver can block when doing things like waiting for a free request/tag. Deferring also helps when the target has to handle transport level requests from the recv context.
For cases where the backend devices can queue everything the target sends, then there is no need to defer to a workqueue and you can see a perf boost of up to 26% for small IO workloads. For a nvme device and vhost-scsi I can see with 4K IOs:
fio jobs 1 2 4 8 10
--------------------------------------------------
workqueue
submit 94K 190K 394K 770K 890K
direct
submit 128K 252K 488K 950K -
v2:
- Use sysfs_emit.
- Add iSCSI target support so now all targets are supported.