[PATCH] sata_mv: grab host lock inside eng_timeout
authorMark Lord <liml@rtr.ca>
Wed, 7 Jun 2006 16:53:29 +0000 (12:53 -0400)
committerJeff Garzik <jeff@garzik.org>
Mon, 12 Jun 2006 03:03:18 +0000 (23:03 -0400)
commit2f9719b61e1fcf7422a016ac4f2420a0cc6ba320
tree1d2f66dcd86d4d7bf65f6628edd0e57cf3f35440
parent650fb8382287f7990d5127a82a54295139224606
[PATCH] sata_mv: grab host lock inside eng_timeout

Bug fix:  mv_eng_timeout() calls mv_err_intr() without first grabbing the host lock,
which can lead to all sorts of interesting scenarios.

This whole error-handling portion of sata_mv is nasty (and will get fixed for
the new EH stuff), but for now this patch will help keep it on life-support.

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