OSDN Git Service

srpt: use target_execute_cmd for WRITEs in srpt_handle_rdma_comp
authorChristoph Hellwig <hch@infradead.org>
Sun, 8 Jul 2012 19:58:43 +0000 (15:58 -0400)
committerNicholas Bellinger <nab@linux-iscsi.org>
Tue, 17 Jul 2012 00:35:18 +0000 (17:35 -0700)
commite672a47fd99b47589dfe2f85759e4c8de526196b
tree9fce33779b7adfef449c5524a97300789c93a8dd
parent67441b68fa73af1c578ccc1d85671b163a7adc13
srpt: use target_execute_cmd for WRITEs in srpt_handle_rdma_comp

srpt_handle_rdma_comp is called from kthread context and thus can execute
target_execute_cmd directly.  srpt_abort_cmd sets the CMD_T_LUN_STOP
flag directly, and thus the abuse of transport_generic_handle_data can be
replaced with an opencoded variant of that code path.  I'm still not happy
about a fabric driver poking into target core internals like this, but
let's defer the bigger architecture changes for now.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/infiniband/ulp/srpt/ib_srpt.c