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 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3USB: sd: sd_start_stop_device proper error codesdrivers/scsi/sd.c+5 -10 replies
2/3SCSI:sd:error handling in sd_sync_cache()drivers/scsi/sd.c+24 -40 replies
3/3SCSI:sd: sd_start_stop_device() error handlingdrivers/scsi/sd.c+8 -00 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/3]error handling in sd suspend

Hi,

this patch series introduces proper error handling into sd suspend handling. This fixes several issue:

- errror codes are sanitized so that SCSI errors don't get into generic PM code
- the error returns from synchronizing the cache are evaluated and translated for the upper layer, this particularly helps when unplug races suspend eSATA is likely to do this, as it takes very long to handle an unplug.
- the error returns for stopping the unit are likewise sanitized

Regards
Oliver