target/iscsi: Remove unneeded locking from iscsi_target_tx_thread
authorAndy Grover <agrover@redhat.com>
Tue, 3 Apr 2012 22:51:08 +0000 (15:51 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Sun, 15 Apr 2012 00:40:34 +0000 (17:40 -0700)
commit4580cf38483790a4304a15328303566a054d4ea5
treee0f237256ec32ba4c9e98ecdbd36e4e752a7cbac
parentc6037cc546ca10cbdc5b60f0598b4ddcb181fe5d
target/iscsi: Remove unneeded locking from iscsi_target_tx_thread

When processing immediate queue, we're switching on a local variable
so it's not necessary to lock around it. However, we are modifying
cmd->i_state in two spots, so lock around those parts only.

Signed-off-by: Andy Grover <agrover@redhat.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/iscsi/iscsi_target.c