]> git.karo-electronics.de Git - karo-tx-linux.git/commit
SCSI gdth: don't call pci_free_consistent under spinlock
authorJames Bottomley <James.Bottomley@HansenPartnership.com>
Sat, 23 Feb 2008 20:55:14 +0000 (20:55 +0000)
committerChris Wright <chrisw@sous-sol.org>
Mon, 24 Mar 2008 18:47:15 +0000 (11:47 -0700)
commit461bab342d2601c5e032f85b27e66beafef66ff8
treece2b97b688fcd85cc08c35b5d2e6069847d5f264
parentf59549d67e4d2f236a87f7d9d2e48dfe84d70f6b
SCSI gdth: don't call pci_free_consistent under spinlock

commit: ff83efacf2b77a1fe8942db6613825a4b80ee5e2

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.

Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/scsi/gdth_proc.c