Searched hist:"0 a2c0f56159999e20015241d3b8fa89b1ab14309" (Results 1 – 3 of 3) sorted by relevance
/openbmc/linux/drivers/ata/ |
H A D | libata-pmp.c | diff 0a2c0f56159999e20015241d3b8fa89b1ab14309 Mon May 19 12:17:52 CDT 2008 Tejun Heo <htejun@gmail.com> libata: improve EH retry delay handling
EH retries were delayed by 5 seconds to ensure that resets don't occur back-to-back. However, this 5 second delay is superflous or excessive in many cases. For example, after IDENTIFY times out, there's no reason to wait five more seconds before retrying.
This patch adds ehc->last_reset timestamp and record the timestamp for the last reset trial or success and uses it to space resets by ATA_EH_RESET_COOL_DOWN which is 5 secs and removes unconditional 5 sec sleeps.
As this change makes inter-try waits often shorter and they're redundant in nature, this patch also removes the "retrying..." messages.
While at it, convert explicit rounding up division to DIV_ROUND_UP().
This change speeds up EH in many cases w/o sacrificing robustness.
Signed-off-by: Tejun Heo <htejun@gmail.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
|
H A D | libata-eh.c | diff 0a2c0f56159999e20015241d3b8fa89b1ab14309 Mon May 19 12:17:52 CDT 2008 Tejun Heo <htejun@gmail.com> libata: improve EH retry delay handling
EH retries were delayed by 5 seconds to ensure that resets don't occur back-to-back. However, this 5 second delay is superflous or excessive in many cases. For example, after IDENTIFY times out, there's no reason to wait five more seconds before retrying.
This patch adds ehc->last_reset timestamp and record the timestamp for the last reset trial or success and uses it to space resets by ATA_EH_RESET_COOL_DOWN which is 5 secs and removes unconditional 5 sec sleeps.
As this change makes inter-try waits often shorter and they're redundant in nature, this patch also removes the "retrying..." messages.
While at it, convert explicit rounding up division to DIV_ROUND_UP().
This change speeds up EH in many cases w/o sacrificing robustness.
Signed-off-by: Tejun Heo <htejun@gmail.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
|
/openbmc/linux/include/linux/ |
H A D | libata.h | diff 0a2c0f56159999e20015241d3b8fa89b1ab14309 Mon May 19 12:17:52 CDT 2008 Tejun Heo <htejun@gmail.com> libata: improve EH retry delay handling
EH retries were delayed by 5 seconds to ensure that resets don't occur back-to-back. However, this 5 second delay is superflous or excessive in many cases. For example, after IDENTIFY times out, there's no reason to wait five more seconds before retrying.
This patch adds ehc->last_reset timestamp and record the timestamp for the last reset trial or success and uses it to space resets by ATA_EH_RESET_COOL_DOWN which is 5 secs and removes unconditional 5 sec sleeps.
As this change makes inter-try waits often shorter and they're redundant in nature, this patch also removes the "retrying..." messages.
While at it, convert explicit rounding up division to DIV_ROUND_UP().
This change speeds up EH in many cases w/o sacrificing robustness.
Signed-off-by: Tejun Heo <htejun@gmail.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
|