Skip to content

Commit 6ba4bd2

Browse files
Andy GroverNicholas Bellinger
authored andcommitted
target/user: Do not set unused fields in tcmu_ops
TCMU sets TRANSPORT_FLAG_PASSTHROUGH, so INQUIRY commands will not be emulated by LIO but passed up to userspace. Therefore TCMU should not set these, just like pscsi doesn't. Signed-off-by: Andy Grover <agrover@redhat.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
1 parent 611e226 commit 6ba4bd2

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/target/target_core_user.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1101,8 +1101,6 @@ tcmu_parse_cdb(struct se_cmd *cmd)
11011101

11021102
static const struct target_backend_ops tcmu_ops = {
11031103
.name = "user",
1104-
.inquiry_prod = "USER",
1105-
.inquiry_rev = TCMU_VERSION,
11061104
.owner = THIS_MODULE,
11071105
.transport_flags = TRANSPORT_FLAG_PASSTHROUGH,
11081106
.attach_hba = tcmu_attach_hba,

0 commit comments

Comments
 (0)