scsi: qla2xxx: Spinlock recursion in qla_target
authorMikhail Malygin <m.malygin@yadro.com>
Wed, 13 Jun 2018 13:05:57 +0000 (13:05 +0000)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 19 Jun 2018 01:02:52 +0000 (21:02 -0400)
commit49d7bd36813ea8e6b4c97b640d24e7fbd44c84f0
tree1676d8d8eb3df82368ed519aca42498992200e6c
parentf2233a33dc1fef4aa30dc11e4c676637bf358c3d
scsi: qla2xxx: Spinlock recursion in qla_target

The patch reverts changes done in qlt_schedule_sess_for_deletion() to
avoid spinlock recursion sess->vha->work_lock should be used instead
of ha->tgt.sess_lock, that can be locked in callers: qlt_reset() or
qlt_handle_login()

[mkp: roll in build warning reported by sfr]

Fixes: 1c6cacf4ea6c04 ("scsi: qla2xxx: Fixup locking for session deletion")
Cc: <stable@vger.kernel.org> #v4.17
Signed-off-by: Mikhail Malygin <m.malygin@yadro.com>
Reported-by: Mikhail Malygin <m.malygin@yadro.com>
Tested-by: Mikhail Malygin <m.malygin@yadro.com>
Acked-by: Himanshu Madhani <himanshu.madhani@cavium.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla2xxx/qla_target.c