Skip to content

error handling in sd_suspend()

Oliver Neukum linux-scsi 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2SCSI: sd_suspend: evaluate lower layers' returnsdrivers/scsi/sd.c+20 -40 replies
2/2SCSI: sd_resume_ don't leak SCSI error codesdrivers/scsi/sd.c+1 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2]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