[SCSI] aic79xx bus reset update
authorHannes Reinecke <hare@suse.de>
Mon, 3 Apr 2006 06:19:34 +0000 (08:19 +0200)
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>
Thu, 13 Apr 2006 17:56:15 +0000 (12:56 -0500)
commitf41b5cec9bd6fec1b11b74500f5fb9c3e6e808b2
tree0098b82ba59ae525d2ed7528435e5d4e46ce76dc
parent4d7db04a7a69099accd84984a78c64d2178252f1
[SCSI] aic79xx bus reset update

As James B. correctly noted, ahd_reset_channel() in
ahd_linux_bus_reset() should be protected by ahd_lock().  However, the
main reason for not doing so was a deadlock with the interesting
polling mechanism to detect the end a bus reset.

This patch replaces the polling mechanism with a saner signalling via
flags; it also gives us the benefit of detecting any multiple calls to
ahd_reset_channel().

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/aic7xxx/aic79xx.h
drivers/scsi/aic7xxx/aic79xx_core.c
drivers/scsi/aic7xxx/aic79xx_osm.c