summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMatthew Wilcox <matthew@wil.cx>2006-03-28 20:03:44 +0400
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>2006-04-13 19:13:25 +0400
commitb4e93a739ed1352664defd41d5e4f82afa29b928 (patch)
tree1799983732dd5dbedd59eb69661f11f49a7f1217 /include
parentc2349df918cdfd47dfe6afaaeed9f504b83255d0 (diff)
downloadlinux-b4e93a739ed1352664defd41d5e4f82afa29b928.tar.xz
[SCSI] Simplify error handling
Use wait_for_completion_timeout() instead of using a timer (as Christoph Hellwig did for aic7xxx). That lets me eliminate the sym_eh_wait structure; the struct completion, the old_done pointer and the to_do flag can be folded into the sym_ucmd (which overrides the scsi_pointer in scsi_cmnd). The sym_eh_done() function becomes much simpler as the timeout handling is done in sym_eh_handler() directly. The host_lock can be unlocked earlier, and I cache the host in a local variable to make accesses to it quicker. Signed-off-by: Matthew Wilcox <matthew@wil.cx> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions