diff options
author | Nicholas Bellinger | 2013-06-21 23:32:04 +0200 |
---|---|---|
committer | Nicholas Bellinger | 2013-09-09 23:29:19 +0200 |
commit | 3aee26b4ae91048c933dc622f00b7bb01f7f0ff1 (patch) | |
tree | c20fcf58cf50fc2803601872aecb866de860c28e /drivers/target/iscsi/iscsi_target_util.c | |
parent | vhost/scsi: Convert to per-cpu ida_alloc + ida_free command map (diff) | |
download | kernel-qcow2-linux-3aee26b4ae91048c933dc622f00b7bb01f7f0ff1.tar.gz kernel-qcow2-linux-3aee26b4ae91048c933dc622f00b7bb01f7f0ff1.tar.xz kernel-qcow2-linux-3aee26b4ae91048c933dc622f00b7bb01f7f0ff1.zip |
vhost/scsi: Add pre-allocation for tv_cmd SGL + upages memory
This patch adds support for pre-allocation of per tv_cmd descriptor
scatterlist + user-space page pointer memory using se_sess->sess_cmd_map
within tcm_vhost_make_nexus() code.
This includes sanity checks within vhost_scsi_map_to_sgl()
to reject I/O that exceeds these initial hardcoded values, and
the necessary cleanup in tcm_vhost_make_nexus() failure path +
tcm_vhost_drop_nexus().
v3 changes:
- Rebase to v3.11-rc5 code
Cc: Michael S. Tsirkin <mst@redhat.com>
Cc: Asias He <asias@redhat.com>
Cc: Kent Overstreet <kmo@daterainc.com>
Reviewed-by: Asias He <asias@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target/iscsi/iscsi_target_util.c')
0 files changed, 0 insertions, 0 deletions