[SCSI] mpt2sas: fix double mutex lock in NON_BLOCKING state
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Tue, 28 Aug 2012 14:38:02 +0000 (18:38 +0400)
committerJames Bottomley <JBottomley@Parallels.com>
Mon, 24 Sep 2012 08:10:59 +0000 (12:10 +0400)
commitb656688a90175d4c424a2f02264863ede7e82d7b
treed34e03ab53c0f226f98bffa5a392839c09a0d598
parentf2b0599de5450e11bc41be2432a161f86d816ae3
[SCSI] mpt2sas: fix double mutex lock in NON_BLOCKING state

If state is NON_BLOCKING and mutex_trylock is succeed,
the control flow goes to mutex_lock_interruptible() that is a deadlock.

[jejb: fixed coding style problems]
Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Acked-by: "Sreekanth Reddy" <sreekanth.reddy@lsi.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/mpt2sas/mpt2sas_ctl.c