diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-04-12 19:51:08 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-04-12 19:51:08 -0400 |
commit | 141eaccd018ef0476e94b180026d973db35460fd (patch) | |
tree | a1c8f5215bd4e5545dee6c56e8bb9b454c818b33 /drivers/vhost | |
parent | 93094449060ae00213ba30ad9eaa485b448fe94b (diff) | |
parent | b076808051f2c80d38e03fb2f1294f525c7a446d (diff) |
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending
Pull SCSI target updates from Nicholas Bellinger:
"Here are the target pending updates for v3.15-rc1. Apologies in
advance for waiting until the second to last day of the merge window
to send these out.
The highlights this round include:
- iser-target support for T10 PI (DIF) offloads (Sagi + Or)
- Fix Task Aborted Status (TAS) handling in target-core (Alex Leung)
- Pass in transport supported PI at session initialization (Sagi + MKP + nab)
- Add WRITE_INSERT + READ_STRIP T10 PI support in target-core (nab + Sagi)
- Fix iscsi-target ERL=2 ASYNC_EVENT connection pointer bug (nab)
- Fix tcm_fc use-after-free of ft_tpg (Andy Grover)
- Use correct ib_sg_dma primitives in ib_isert (Mike Marciniszyn)
Also, note the virtio-scsi + vhost-scsi changes to expose T10 PI
metadata into KVM guest have been left-out for now, as there where a
few comments from MST + Paolo that where not able to be addressed in
time for v3.15. Please expect this feature for v3.16-rc1"
* 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending: (43 commits)
ib_srpt: Use correct ib_sg_dma primitives
target/tcm_fc: Rename ft_tport_create to ft_tport_get
target/tcm_fc: Rename ft_{add,del}_lport to {add,del}_wwn
target/tcm_fc: Rename structs and list members for clarity
target/tcm_fc: Limit to 1 TPG per wwn
target/tcm_fc: Don't export ft_lport_list
target/tcm_fc: Fix use-after-free of ft_tpg
target: Add check to prevent Abort Task from aborting itself
target: Enable READ_STRIP emulation in target_complete_ok_work
target/sbc: Add sbc_dif_read_strip software emulation
target: Enable WRITE_INSERT emulation in target_execute_cmd
target/sbc: Add sbc_dif_generate software emulation
target/sbc: Only expose PI read_cap16 bits when supported by fabric
target/spc: Only expose PI mode page bits when supported by fabric
target/spc: Only expose PI inquiry bits when supported by fabric
target: Pass in transport supported PI at session initialization
target/iblock: Fix double bioset_integrity_free bug
Target/sbc: Initialize COMPARE_AND_WRITE write_sg scatterlist
target/rd: T10-Dif: RAM disk is allocating more space than required.
iscsi-target: Fix ERL=2 ASYNC_EVENT connection pointer bug
...
Diffstat (limited to 'drivers/vhost')
-rw-r--r-- | drivers/vhost/scsi.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/vhost/scsi.c b/drivers/vhost/scsi.c index e48d4a672580..cf50ce93975b 100644 --- a/drivers/vhost/scsi.c +++ b/drivers/vhost/scsi.c | |||
@@ -539,6 +539,11 @@ static void tcm_vhost_queue_tm_rsp(struct se_cmd *se_cmd) | |||
539 | return; | 539 | return; |
540 | } | 540 | } |
541 | 541 | ||
542 | static void tcm_vhost_aborted_task(struct se_cmd *se_cmd) | ||
543 | { | ||
544 | return; | ||
545 | } | ||
546 | |||
542 | static void tcm_vhost_free_evt(struct vhost_scsi *vs, struct tcm_vhost_evt *evt) | 547 | static void tcm_vhost_free_evt(struct vhost_scsi *vs, struct tcm_vhost_evt *evt) |
543 | { | 548 | { |
544 | vs->vs_events_nr--; | 549 | vs->vs_events_nr--; |
@@ -1740,7 +1745,8 @@ static int tcm_vhost_make_nexus(struct tcm_vhost_tpg *tpg, | |||
1740 | */ | 1745 | */ |
1741 | tv_nexus->tvn_se_sess = transport_init_session_tags( | 1746 | tv_nexus->tvn_se_sess = transport_init_session_tags( |
1742 | TCM_VHOST_DEFAULT_TAGS, | 1747 | TCM_VHOST_DEFAULT_TAGS, |
1743 | sizeof(struct tcm_vhost_cmd)); | 1748 | sizeof(struct tcm_vhost_cmd), |
1749 | TARGET_PROT_NORMAL); | ||
1744 | if (IS_ERR(tv_nexus->tvn_se_sess)) { | 1750 | if (IS_ERR(tv_nexus->tvn_se_sess)) { |
1745 | mutex_unlock(&tpg->tv_tpg_mutex); | 1751 | mutex_unlock(&tpg->tv_tpg_mutex); |
1746 | kfree(tv_nexus); | 1752 | kfree(tv_nexus); |
@@ -2131,6 +2137,7 @@ static struct target_core_fabric_ops tcm_vhost_ops = { | |||
2131 | .queue_data_in = tcm_vhost_queue_data_in, | 2137 | .queue_data_in = tcm_vhost_queue_data_in, |
2132 | .queue_status = tcm_vhost_queue_status, | 2138 | .queue_status = tcm_vhost_queue_status, |
2133 | .queue_tm_rsp = tcm_vhost_queue_tm_rsp, | 2139 | .queue_tm_rsp = tcm_vhost_queue_tm_rsp, |
2140 | .aborted_task = tcm_vhost_aborted_task, | ||
2134 | /* | 2141 | /* |
2135 | * Setup callers for generic logic in target_core_fabric_configfs.c | 2142 | * Setup callers for generic logic in target_core_fabric_configfs.c |
2136 | */ | 2143 | */ |