Skip to content

Commit

Permalink
target: remove the unused SCF_CMD_XCOPY_PASSTHROUGH flag
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
  • Loading branch information
Christoph Hellwig authored and Nicholas Bellinger committed Apr 8, 2015
1 parent 6766cc8 commit c3d0a7c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions drivers/target/target_core_xcopy.c
Original file line number Diff line number Diff line change
Expand Up @@ -553,15 +553,15 @@ static int target_xcopy_init_pt_lun(
* target_xcopy_setup_pt_port()
*/
if (!remote_port) {
pt_cmd->se_cmd_flags |= SCF_SE_LUN_CMD | SCF_CMD_XCOPY_PASSTHROUGH;
pt_cmd->se_cmd_flags |= SCF_SE_LUN_CMD;
return 0;
}

pt_cmd->se_lun = &se_dev->xcopy_lun;
pt_cmd->se_dev = se_dev;

pr_debug("Setup emulated se_dev: %p from se_dev\n", pt_cmd->se_dev);
pt_cmd->se_cmd_flags |= SCF_SE_LUN_CMD | SCF_CMD_XCOPY_PASSTHROUGH;
pt_cmd->se_cmd_flags |= SCF_SE_LUN_CMD;

pr_debug("Setup emulated se_dev: %p to pt_cmd->se_lun->lun_se_dev\n",
pt_cmd->se_lun->lun_se_dev);
Expand Down
1 change: 0 additions & 1 deletion include/target/target_core_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,6 @@ enum se_cmd_flags_table {
SCF_ACK_KREF = 0x00040000,
SCF_COMPARE_AND_WRITE = 0x00080000,
SCF_COMPARE_AND_WRITE_POST = 0x00100000,
SCF_CMD_XCOPY_PASSTHROUGH = 0x00200000,
};

/* struct se_dev_entry->lun_flags and struct se_lun->lun_access */
Expand Down

0 comments on commit c3d0a7c

Please sign in to comment.