Put a bit of hysteresis into both BUSY SCSI status returns
authorPeter Avalos <pavalos@dragonflybsd.org>
Sun, 2 Dec 2007 04:54:40 +0000 (04:54 +0000)
committerPeter Avalos <pavalos@dragonflybsd.org>
Sun, 2 Dec 2007 04:54:40 +0000 (04:54 +0000)
commitebf745a7596ce5274b2ec7534a03db0ed5327111
tree0defeb440ac4bd4a4b295245ddd70cfc96f1922b
parentd4226324ca6b1e8a525543543470e23a54a298a3
Put a bit of hysteresis into both BUSY SCSI status returns
and CAM_RESRC_UNAVAIL returns. Delay a tunable amount for
either between retries.

This came up because the MPT IOC was returning "IOC out of
resources" for some FreeBSD users and this caused a CAM_RESRC_UNAVAIL
return. Putting a bit of delay between retries helped them
out.

Obtained-from: FreeBSD
sys/bus/cam/cam_periph.c