kernel-fxtec-pro1x/drivers/scsi/pm8001
Suresh Thiagarajan 2b01d816f5 [SCSI] pm80xx: Spinlock fix
spin_lock_irqsave for the HBA lock is called in one function where flag
is local to that function. Another function is called from the first
function where lock has to be released using spin_unlock_irqrestore for
calling task_done of libsas. In the second function also flag is declared
and used. For calling task_done there is no need to enable the irq. So
instead of using spin_lock_irqsave and spin_unlock_irqrestore, spin_lock
and spin_unlock is used now. This also avoids passing the flags across all
the functions where HBA lock is being used. Also removed redundant code.

Reported-by: Jason Seba <jason.seba42@gmail.com>
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Suresh Thiagarajan <Suresh.Thiagarajan@pmcs.com>
Signed-off-by: Viswas G <viswas.g@pmcs.com>
Acked-by: Jack Wang <xjtuwjp@gmail.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
2014-03-15 10:19:01 -07:00
..
Makefile [SCSI] pm80xx: Added SPCv/ve specific hardware functionalities and relevant changes in common files 2013-05-10 07:47:47 -07:00
pm80xx_hwi.c [SCSI] pm80xx: Spinlock fix 2014-03-15 10:19:01 -07:00
pm80xx_hwi.h [SCSI] pm80xx: Resetting the phy state. 2013-12-02 10:35:52 -08:00
pm8001_chips.h
pm8001_ctl.c [SCSI] pm80xx: Fixed return value issue 2014-03-15 10:17:47 -07:00
pm8001_ctl.h [SCSI] pm80xx: Firmware logging support. 2013-10-25 09:58:16 +01:00
pm8001_defs.h [SCSI] pm80xx: Firmware logging support. 2013-10-25 09:58:16 +01:00
pm8001_hwi.c [SCSI] pm80xx: Spinlock fix 2014-03-15 10:19:01 -07:00
pm8001_hwi.h [SCSI] pm80xx: Resetting the phy state. 2013-12-02 10:35:52 -08:00
pm8001_init.c [SCSI] pm80xx: Read saved WWN from NVMD for ATTO pm8001 based HBAs. 2014-03-15 10:18:58 -07:00
pm8001_sas.c [SCSI] pm80xx: Fix for direct attached device. 2013-12-02 10:33:20 -08:00
pm8001_sas.h [SCSI] pm80xx: Spinlock fix 2014-03-15 10:19:01 -07:00