target: add struct spc_ops + initial ->execute_rw pointer usage
authorChristoph Hellwig <hch@infradead.org>
Sun, 17 Jun 2012 22:40:52 +0000 (18:40 -0400)
committerNicholas Bellinger <nab@linux-iscsi.org>
Tue, 17 Jul 2012 00:29:12 +0000 (17:29 -0700)
commit0c2ad7d1132d8b089b1d37875917858e03610019
treee86cc118497605026a15c0e97630c57aeb625793
parente1306bdab3af8bef620990a99e613f99eb30065c
target: add struct spc_ops + initial ->execute_rw pointer usage

Remove the execute_cmd method in struct se_subsystem_api, and always use the
one directly in struct se_cmd.  To make life simpler for SBC virtual backends
a struct spc_ops that is passed to sbc_parse_cmd is added.  For now it
only contains an execute_rw member, but more will follow with the subsequent
commits.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_file.c
drivers/target/target_core_iblock.c
drivers/target/target_core_pscsi.c
drivers/target/target_core_rd.c
drivers/target/target_core_sbc.c
drivers/target/target_core_transport.c
include/target/target_core_backend.h