]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1c01dbb2d3885653deb0640dc49784d0f3743687
treee0f237256ec32ba4c9e98ecdbd36e4e752a7cbac
parent6c4a20dad0293b621dad792d560c19dc54a106aa
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