diff options
author | Nicholas Bellinger | 2012-11-27 23:55:57 -0800 |
---|---|---|
committer | Nicholas Bellinger | 2012-11-28 01:10:59 -0800 |
commit | 9474b043132f41ee03bd3d8dcb076f8569ae69d3 (patch) | |
tree | fbeab82e5c98b57bca9177353c730fc5ac7d0dd3 /include/math-emu | |
parent | ffe0067544f93c0e71c793d7f17240486d091a3c (diff) |
ib_srpt: Convert I/O path to target_submit_cmd + drop legacy ioctx->kref
This patch converts the main srpt_handle_cmd() I/O path to use modern
target_submit_cmd() with TARGET_SCF_ACK_KREF flag usage. This includes
dropping the original internal ioctx->kref + srpt_put_send_ioctx() usage
in favor of target_put_sess_cmd() w/ se_cmd_t->cmd_kref within ib_srpt
response callbacks.
It also updates srpt_abort_cmd() to call target_put_sess_cmd() for
completion of aborted commands, and adds target_wait_for_sess_cmds() into
srpt_release_channel_work() to allow outstanding I/O to complete during
session shutdown.
Also, go ahead and update srpt_handle_tsk_mgmt() to make the remaining
transport_init_se_cmd() to setup the ioctx->cmd with se_tmr_req.
Cc: Christoph Hellwig <hch@lst.de>
Cc: Bart Van Assche <bvanassche@acm.org>
Cc: Roland Dreier <roland@kernel.org>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'include/math-emu')
0 files changed, 0 insertions, 0 deletions