]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit11bf4f76fb89227a9d18140bd5fd135f88ac59e6
tree210020dd37017542b572a712cc41cd941eb7590d
parent0bb008fb3d1125c6b26000832c79a64dfb7bb147
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