]> git.baikalelectronics.ru Git - kernel.git/commit
qla2xxx: Remove racy, now-redundant check of sess_tearing_down
authorRoland Dreier <roland@purestorage.com>
Mon, 16 Jul 2012 18:04:41 +0000 (11:04 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Tue, 17 Jul 2012 00:35:27 +0000 (17:35 -0700)
commitffabe496ac514a95b3c1f55b4cc11d3dfd864844
tree476afba53473e042fa974423ce348503b6175a9c
parent1fb25b9a75fb5b34d099b8140e900c45941e66b9
qla2xxx: Remove racy, now-redundant check of sess_tearing_down

Now that target_submit_cmd() / target_get_sess_cmd() check
sess_tearing_down before adding commands to the list, we no longer
need the check in qlt_do_work().  In fact this check is racy anyway
(and that race is what inspired the change to add the check of
sess_tearing_down to the target core).

Cc: Chad Dupuis <chad.dupuis@qlogic.com>
Cc: Arun Easi <arun.easi@qlogic.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/scsi/qla2xxx/qla_target.c