diff options
author | Nicholas Bellinger <nab@linux-iscsi.org> | 2013-06-06 04:58:04 -0400 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2013-06-20 17:10:43 -0400 |
commit | b28e545c4ddd7b594c64e8f3d9c2891eda253afc (patch) | |
tree | 1665296126ac76e6a1c5182e3087fc734361206c /drivers/target | |
parent | 1a398b973184342f30ab97711b9c38fd75df0384 (diff) |
target: Drop unnecessary t_state_lock access for SCF_SUPPORTED_SAM_OPCODE assignment
This patch drops the se_cmd->t_state_lock access around SCF_SUPPORTED_SAM_OPCODE
assignment within target_setup_cmd_from_cdb().
Original v4.0 target code required this as fabrics would be checking for
this values in different process contexts for setup and I/O submission.
Given that modern v4.1 target code performs setup and I/O submission
from the same process context, this t_state_lock access is no longer
required.
Cc: Christoph Hellwig <hch@lst.de>
Cc: Roland Dreier <roland@kernel.org>
Cc: Kent Overstreet <koverstreet@google.com>
Cc: Or Gerlitz <ogerlitz@mellanox.com>
Cc: Moussa Ba <moussaba@micron.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target')
-rw-r--r-- | drivers/target/target_core_transport.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/target/target_core_transport.c b/drivers/target/target_core_transport.c index e9ba012e82a9..94c5b323db3c 100644 --- a/drivers/target/target_core_transport.c +++ b/drivers/target/target_core_transport.c | |||
@@ -1089,7 +1089,6 @@ sense_reason_t | |||
1089 | target_setup_cmd_from_cdb(struct se_cmd *cmd, unsigned char *cdb) | 1089 | target_setup_cmd_from_cdb(struct se_cmd *cmd, unsigned char *cdb) |
1090 | { | 1090 | { |
1091 | struct se_device *dev = cmd->se_dev; | 1091 | struct se_device *dev = cmd->se_dev; |
1092 | unsigned long flags; | ||
1093 | sense_reason_t ret; | 1092 | sense_reason_t ret; |
1094 | 1093 | ||
1095 | /* | 1094 | /* |
@@ -1149,9 +1148,7 @@ target_setup_cmd_from_cdb(struct se_cmd *cmd, unsigned char *cdb) | |||
1149 | if (ret) | 1148 | if (ret) |
1150 | return ret; | 1149 | return ret; |
1151 | 1150 | ||
1152 | spin_lock_irqsave(&cmd->t_state_lock, flags); | ||
1153 | cmd->se_cmd_flags |= SCF_SUPPORTED_SAM_OPCODE; | 1151 | cmd->se_cmd_flags |= SCF_SUPPORTED_SAM_OPCODE; |
1154 | spin_unlock_irqrestore(&cmd->t_state_lock, flags); | ||
1155 | 1152 | ||
1156 | spin_lock(&cmd->se_lun->lun_sep_lock); | 1153 | spin_lock(&cmd->se_lun->lun_sep_lock); |
1157 | if (cmd->se_lun->lun_sep) | 1154 | if (cmd->se_lun->lun_sep) |