target: replace se_cmd->execute_rw with a protocol_data field
authorChristoph Hellwig <hch@lst.de>
Fri, 19 Jun 2015 13:10:58 +0000 (15:10 +0200)
committerNicholas Bellinger <nab@linux-iscsi.org>
Tue, 23 Jun 2015 07:43:42 +0000 (00:43 -0700)
commit7a971b1b3055f0e76ff09b8fd0dd809ea3b48279
treec712c1dabef5628269b28038b2e757e820884de4
parente2e21bd8f979a24462070cc89fae11e819cae90a
target: replace se_cmd->execute_rw with a protocol_data field

Instead of leaking this SBC read/write implementation detail just add an
opaqueue protocol specific pointer to struct se_cmd that we can assign
the sbc_ops vector to.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Andy Grover <agrover@redhat.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_sbc.c
include/target/target_core_base.h