]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit - drivers/infiniband/ulp/isert/ib_isert.c
iscsi/isert-target: Refactor ISCSI_OP_NOOP RX handling
authorNicholas Bellinger <nab@linux-iscsi.org>
Fri, 14 Jun 2013 23:07:47 +0000 (16:07 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Tue, 25 Jun 2013 05:35:51 +0000 (22:35 -0700)
commit778de368964c5b7e8100cde9f549992d521e9c89
tree5925e16a0fa2e29925f3ee44a0f00fc11d2afb4d
parent08234e3adc7a299c9213bcfa0b5e97c359129670
iscsi/isert-target: Refactor ISCSI_OP_NOOP RX handling

This patch refactors ISCSI_OP_NOOP handling within iscsi-target in
order to handle iscsi_nopout payloads in a transport specific manner.

This includes splitting existing iscsit_handle_nop_out() into
iscsit_setup_nop_out() and iscsit_process_nop_out() calls, and
makes iscsit_handle_nop_out() be only used internally by traditional
iscsi socket calls.

Next update iser-target code to use new callers and add FIXME for
the handling iscsi_nopout payloads.  Also fix reject response handling
in iscsit_setup_nop_out() to use proper iscsit_add_reject_from_cmd().

v2: Fix uninitialized iscsit_handle_nop_out() payload_length usage (Fengguang)
v3: Remove left-over dead code in iscsit_setup_nop_out() (DanC)

Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/infiniband/ulp/isert/ib_isert.c
drivers/target/iscsi/iscsi_target.c
include/target/iscsi/iscsi_transport.h