]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] sata_mv: prevent unnecessary double-resets
authorMark Lord <liml@rtr.ca>
Fri, 19 May 2006 20:21:03 +0000 (16:21 -0400)
committerJeff Garzik <jeff@garzik.org>
Sat, 20 May 2006 04:31:45 +0000 (00:31 -0400)
commit8d5f4276052b2d27b2f3d8cca17c0456eecca3d1
treeb1cfece40d968befb1df17661282471ddf59a9dc
parentaa919ffef1f03c1ca3ee03011ed2352206e79674
[PATCH] sata_mv: prevent unnecessary double-resets

The mv_err_intr() function is invoked from the driver's interrupt handler,
as well as from the timeout function.  This patch prevents it from triggering
a one-after-the-other double reset of the controller when invoked
from the timeout function.

This also adds a check for a timeout race condition that has been observed
to occur with this driver in earlier kernels.  This should not be needed,
in theory, but in practice it has caught bugs.  Maybe nuke it at a later date.

Signed-off-by: Mark Lord <liml@rtr.ca>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/scsi/sata_mv.c