]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] Enable retries for SYNCRONIZE_CACHE commands to fix I/O error
authorHannes Reinecke <hare@suse.de>
Tue, 4 May 2010 14:49:21 +0000 (16:49 +0200)
committerJames Bottomley <James.Bottomley@suse.de>
Wed, 5 May 2010 16:13:26 +0000 (12:13 -0400)
commitda8019cc2c0ee0d09456cfec08f314955eeca751
tree008bd8d7c0840c29bac8bf159850ab317043c4eb
parenteb16e69a9870ff81472d6c58cc0438c2c42c7751
[SCSI] Enable retries for SYNCRONIZE_CACHE commands to fix I/O error

Some arrays are giving I/O errors with ext3 filesystems when
SYNCHRONIZE_CACHE gets a UNIT_ATTENTION.  What is happening is that
these commands have no retries, so the UNIT_ATTENTION causes the
barrier to fail.  We should be enable retries here to clear any
transient error and allow the barrier to succeed.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Cc: Stable Tree <stable@kernel.org>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/sd.c