iscsi-target: Avoid unnecessary t_state_lock during unsolicited data-out check
authorNicholas Bellinger <nab@linux-iscsi.org>
Thu, 6 Jun 2013 08:58:49 +0000 (01:58 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Thu, 20 Jun 2013 21:10:44 +0000 (14:10 -0700)
commitb9da5826df3936671ea67bc33f6fc8c2020526b8
treeeecce0a859bf5048f8b9c683e4baf4cef2b62eaf
parentb28e545c4ddd7b594c64e8f3d9c2891eda253afc
iscsi-target: Avoid unnecessary t_state_lock during unsolicited data-out check

In modern iscsi-target code, the setup and I/O submission is done within a
single process context, so there is no need to acquire se_cmd->t_state_lock while
checking SCF_SUPPORTED_SAM_OPCODE for determining when unsolicited data-out
should be dumped.

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/iscsi/iscsi_target.c