Skip to contentSkip to conversation

error handling in sd_suspend()

PATCH New Oliver Neukum 1 participant 1 message Oct 8, 2010 SCSI

lore
Share & tools
lore
#0 lore raw

cover error handling in sd_suspend()

Hi,

I've encountered a problem when sd_suspend() races disconnect handling of SATA. This race can lead to needlessly aborted suspensions. To avoid this problem. I suggest evaluating the error returns from the lower layers, to tell us whether a problem is transient or totally unrecoverable. If a transient problem occurs we should not go to sleep and in some cases suggest that the upper layer retry. An unrecoverable error, such as a device going away can be ignored.

Regards
Oliver