]> git.karo-electronics.de Git - karo-tx-linux.git/commit
target: Drop unnecessary t_state_lock access for SCF_SUPPORTED_SAM_OPCODE assignment
authorNicholas Bellinger <nab@linux-iscsi.org>
Thu, 6 Jun 2013 08:58:04 +0000 (01:58 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Fri, 14 Jun 2013 07:28:29 +0000 (00:28 -0700)
commit3e585a74cf33e5f8a6e547b94f0c93f48f754c28
treed481212ad78f7175fa3ced85b9c0fa23b98a3e83
parent8d4d89d2e1f94b6a77ab86f480d1f6eaf882d7f9
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>
drivers/target/target_core_transport.c