]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] sd: Add error handling during flushing caches
authorOliver Neukum <oneukum@suse.de>
Mon, 16 Sep 2013 11:28:15 +0000 (13:28 +0200)
committerJames Bottomley <JBottomley@Parallels.com>
Fri, 25 Oct 2013 08:58:13 +0000 (09:58 +0100)
commitaac73d4d9b38f6e1f761eb5bd705ef038e9a28d9
tree8bcc6ac1c69edbc663c8cd0ec3255cce44e1674e
parente7e746c89be58d7992725ed82daf349e1ec2a8e5
[SCSI] sd: Add error handling during flushing caches

It makes no sense to flush the cache of a device without medium.
Errors during suspend must be handled according to their causes.
Errors due to missing media or unplugged devices must be ignored.
Errors due to devices being offlined must also be ignored.
The error returns must be modified so that the generic layer
understands them.

[jejb: fix up whitespace and other formatting problems]
Signed-off-by: Oliver Neukum <oneukum@suse.de>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/scsi_pm.c
drivers/scsi/sd.c