From: Nicholas Bellinger Date: Wed, 28 Nov 2012 07:55:57 +0000 (-0800) Subject: ib_srpt: Convert I/O path to target_submit_cmd + drop legacy ioctx->kref X-Git-Tag: v3.8-rc1~94^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9474b043132f41ee03bd3d8dcb076f8569ae69d3;p=pandora-kernel.git 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 Cc: Bart Van Assche Cc: Roland Dreier Signed-off-by: Nicholas Bellinger --- Reading git-diff-tree failed