[SCSI] aacraid: Relax the tight timeout loop on fib commands
authorBen Collins <bcollins@ubuntu.com>
Mon, 11 Jun 2012 18:44:44 +0000 (14:44 -0400)
committerJames Bottomley <JBottomley@Parallels.com>
Fri, 20 Jul 2012 07:58:44 +0000 (08:58 +0100)
commit30002f1c02ada69342443e7ed5ee9118feb89510
tree369369427cbbfd3b1bdeabd7aa7ed8355f1e53e9
parent361ee9c3f3839d6cbd306b5bd34292e0848ecfdc
[SCSI] aacraid: Relax the tight timeout loop on fib commands

The loop that waited for syncronous fib commands was causing a CPU stall
when a timeout actually occured.

1) Switch to using a more accurate timeout mechanism.
2) Do not pace the loop with udelay(). Use cpu_relax() to allow for
   scheduling to occur.

Signed-off-by: Ben Collins <bcollins@ubuntu.com>
Acked-by: Achim Leubner <Achim_Leubner@pmc-sierra.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/aacraid/commsup.c