[SCSI] use a completion in scsi_send_eh_cmnd
authorChristoph Hellwig <hch@lst.de>
Mon, 31 Oct 2005 17:49:52 +0000 (18:49 +0100)
committerJames Bottomley <jejb@mulgrave.(none)>
Sun, 6 Nov 2005 18:49:36 +0000 (12:49 -0600)
scsi_send_eh_cmnd currently uses a semaphore and an overload of eh_timer
to either get a completion for a command for a timeout.
Switch to using a completion and wait_for_completion_timeout to simply
the code and not having to deal with the races ourselves.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>

No differences found