target/user: Disallow full passthrough (pass_level=0)
authorAndy Grover <agrover@redhat.com>
Fri, 1 May 2015 17:43:45 +0000 (10:43 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Sun, 3 May 2015 01:20:51 +0000 (18:20 -0700)
commit8ee83a747ac2309934c229281dda8f26648ec462
tree210020dd37017542b572a712cc41cd941eb7590d
parenta928d28d4487402e6bd18bea1b8cc2b2ec6e6d8f
target/user: Disallow full passthrough (pass_level=0)

TCMU requires more work to correctly handle both user handlers that want
all SCSI commands (pass_level=0) for a se_device, and also handlers that
just want I/O commands and let the others be emulated by the kernel
(pass_level=1). Only support the latter for now.

For full passthrough, we will need to support a second se_subsystem_api
template, due to configfs attributes being different between the two modes.
Thus pass_level is extraneous, and we can remove it.

The ABI break for TCMU v2 is already applied for this release, so it's
best to do this now to avoid another ABI break in the future.

Signed-off-by: Andy Grover <agrover@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Documentation/target/tcmu-design.txt
drivers/target/target_core_user.c