mpt2sas: fix config request and diag reset deadlock
commiteec3155c9187314b70ae4e495fea1de57ffe4783
authorKashyap, Desai <kashyap.desai@lsi.com>
Fri, 14 Aug 2009 09:31:35 +0000 (14 15:01 +0530)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 9 Sep 2009 03:33:48 +0000 (8 20:33 -0700)
tree52937913101deb7398d78e0269936fedee497f0b
parent838c463532b6de9cdc3075e45bf8487e7d5c0336
mpt2sas: fix config request and diag reset deadlock

commit 388ce4beb7135722c584b0af18f215e3ec657adf upstream.

Moving the setting and clearing of the mutex's to
_config_request. There was a mutex deadlock when diag reset is called from
inside _config_request, so diag reset was moved to outside the mutexs.

Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Signed-off-by: Kashyap Desai <kashyap.desai@lsi.com>
Signed-off-by: Eric Moore <Eric.moore@lsi.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/scsi/mpt2sas/mpt2sas_config.c