Re: [PATCH 2.6.25-rc6] sata_promise: fix hardreset hotplug quirk

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Tejun Heo
Date: Saturday, March 22, 2008 - 8:21 pm

Hello, Mikael.

Mikael Pettersson wrote:

Actually, this is common to many SATA controllers.  Lots of them raise
PHY event or hotplug interrupt during COMRESET and they all plug PHY
events from ->freeze.


Hmmm... This is supposed to be handled by setting ap->lock appropriately
and ap->lock already is initialized to &host->lock, so sticking with
ap->lock is the right thing to do.


->freeze() is called with ap->lock held, trying to lock host->lock
inside pdc_sata_enable/disable_hotplug() will result in deadlock.  Have
you tested w/ SMP configuration or spinlock debugging turned on?

-- 
tejun
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 2.6.25-rc6] sata_promise: fix hardreset hotplug quirk, Mikael Pettersson, (Sat Mar 22, 7:21 am)
Re: [PATCH 2.6.25-rc6] sata_promise: fix hardreset hotplug ..., Tejun Heo, (Sat Mar 22, 8:21 pm)
Re: [PATCH 2.6.25-rc6] sata_promise: fix hardreset hotplug ..., Mikael Pettersson, (Sun Mar 23, 3:30 am)
[PATCH 2.6.25-rc6] sata_promise: fix hardreset hotplug eve ..., Mikael Pettersson, (Sun Mar 23, 10:41 am)