[SCSI] gdth: don't call pci_free_consistent under spinlock
authorJames Bottomley <James.Bottomley@HansenPartnership.com>
Sun, 17 Feb 2008 17:24:51 +0000 (11:24 -0600)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Mon, 18 Feb 2008 15:02:25 +0000 (09:02 -0600)
The spinlock is held over too large a region: pscratch is a permanent
address (it's allocated at boot time and never changes).  All you need
the smp lock for is mediating the scratch in use flag, so fix this by
moving the spinlock into the case where we set the pscratch_busy flag
to false.

Cc: Stable Tree <stable@kernel.org>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>

No differences found