[SCSI] mpt2sas: removed use of tm_cmds.mutex in IOCTL branch.
authorKashyap, Desai <kashyap.desai@lsi.com>
Wed, 17 Mar 2010 10:55:59 +0000 (16:25 +0530)
committerJames Bottomley <James.Bottomley@suse.de>
Sun, 11 Apr 2010 14:24:00 +0000 (09:24 -0500)
commit8ed9a03ad4c1b6c5ae163e5e9f140852be0273a1
tree67b6a1e7f59ad5eab7fd75ae025c845544d8b360
parente94f67472106e5a0e97c79090211c551e69e889b
[SCSI] mpt2sas: removed use of tm_cmds.mutex in IOCTL branch.

Removed all the mutex's for ioc->tm_cmds.mutex, then created one
single mutex inside the function mpt2sas_scsih_issue_tm. This is the
single function used when sending task management. Also the sanity
checks required for scsi mid layer escalation were moved to inside the
same function because these checks need to be done while the mutex is
held. The ioc->tm_cmds.mutex inside the IOCTL branch is really not
required since there is another mutex in this code called for ctl_cmds
handling this sync.

Signed-off-by: Kashyap Desai <kashyap.desai@lsi.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/mpt2sas/mpt2sas_base.h
drivers/scsi/mpt2sas/mpt2sas_ctl.c
drivers/scsi/mpt2sas/mpt2sas_scsih.c