]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commitcb020b0b6c1a48d2f7748d2d01b772079234e6af
tree67b6a1e7f59ad5eab7fd75ae025c845544d8b360
parentb1e940b97dfc3a99f5db1361de5bcbacdff7c6bc
[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