]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit456abf527f6e9cc8c52f0dd1c7193362ffd1219f
treed34e03ab53c0f226f98bffa5a392839c09a0d598
parent4ada5724b7c138c3798dd6dca4236d24cecbc9dd
[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