]> 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)
commitc2678855e1c2479c8e444a2eb1b7a0f9c6a65d18
treed34e03ab53c0f226f98bffa5a392839c09a0d598
parent7950d6ef7f4a04773effdfc0845e95d4ed6040b6
[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