From: Suresh Thiagarajan Date: Thu, 16 Jan 2014 09:56:21 +0000 (+0530) Subject: [SCSI] pm80xx: Spinlock fix X-Git-Tag: v3.15-rc1~136^2~134 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2b01d816f5f884d5ea16ab2498736b1221bc027c;p=pandora-kernel.git [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 Signed-off-by: Oleg Nesterov Signed-off-by: Suresh Thiagarajan Signed-off-by: Viswas G Acked-by: Jack Wang Signed-off-by: James Bottomley --- Reading git-diff-tree failed