Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit af74115e authored by Roland Dreier's avatar Roland Dreier Committed by Nicholas Bellinger
Browse files

target: Remove unused se_cmd.cmd_spdtl



This was originally for helping fabrics to determine overflow/underflow
status, and has been superceeded by SCF_OVERFLOW_BIT + SCF_UNDERFLOW_BIT.

Signed-off-by: default avatarRoland Dreier <roland@purestorage.com>
Signed-off-by: default avatarNicholas Bellinger <nab@linux-iscsi.org>
parent 08a16208
Loading
Loading
Loading
Loading
+0 −2
Original line number Original line Diff line number Diff line
@@ -1165,8 +1165,6 @@ int target_cmd_size_check(struct se_cmd *cmd, unsigned int size)
			" 0x%02x\n", cmd->se_tfo->get_fabric_name(),
			" 0x%02x\n", cmd->se_tfo->get_fabric_name(),
				cmd->data_length, size, cmd->t_task_cdb[0]);
				cmd->data_length, size, cmd->t_task_cdb[0]);


		cmd->cmd_spdtl = size;

		if (cmd->data_direction == DMA_TO_DEVICE) {
		if (cmd->data_direction == DMA_TO_DEVICE) {
			pr_err("Rejecting underflow/overflow"
			pr_err("Rejecting underflow/overflow"
					" WRITE data\n");
					" WRITE data\n");
+0 −2
Original line number Original line Diff line number Diff line
@@ -503,8 +503,6 @@ struct se_cmd {
	u32			se_ordered_id;
	u32			se_ordered_id;
	/* Total size in bytes associated with command */
	/* Total size in bytes associated with command */
	u32			data_length;
	u32			data_length;
	/* SCSI Presented Data Transfer Length */
	u32			cmd_spdtl;
	u32			residual_count;
	u32			residual_count;
	u32			orig_fe_lun;
	u32			orig_fe_lun;
	/* Persistent Reservation key */
	/* Persistent Reservation key */