linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Correct use of  ap->lock  versus  ap->host->lock ?
@ 2008-03-06 15:48 Mark Lord
  2008-03-06 16:35 ` Jeff Garzik
  0 siblings, 1 reply; 13+ messages in thread
From: Mark Lord @ 2008-03-06 15:48 UTC (permalink / raw)
  To: Tejun Heo, Jeff Garzik, Alan Cox, IDE/ATA development list

Jeff / Tejun / Alan,

I'm trying to sort out the spinlocks in sata_mv.

In some places, the existing code uses ap->lock.
But in others, notably the interrupt handling, it uses ap->host->lock.

This looks buggy to me, and I'm wondering how to make it bulletproof.

The interrupt handler for each port should really be using ap->lock, right?
But accesses to the host-level (shared among ports) interrupt registers
probably requires ap->host->lock.  Right again?

>From a libata core point of view, what does ap->host->lock protect?

???

Thanks

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2008-03-07 12:04 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-06 15:48 Correct use of ap->lock versus ap->host->lock ? Mark Lord
2008-03-06 16:35 ` Jeff Garzik
2008-03-06 17:13   ` Mark Lord
2008-03-06 17:24     ` Mark Lord
2008-03-06 17:41       ` Jeff Garzik
2008-03-06 18:12         ` Jeff Garzik
2008-03-06 23:04           ` Tejun Heo
2008-03-06 17:28     ` Jeff Garzik
2008-03-06 17:36       ` Mark Lord
2008-03-06 17:57         ` Jeff Garzik
2008-03-06 18:20           ` Mark Lord
2008-03-06 18:24             ` Jeff Garzik
2008-03-07 11:47               ` Andi Kleen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).