commit | 3d47aa8e7e7b2aa09256590388aa8dddc79280f9 | [log] [tgz] |
---|---|---|
author | Alan Cox <alan@redhat.com> | Tue Mar 24 10:23:19 2009 +0000 |
committer | Jeff Garzik <jgarzik@redhat.com> | Tue Mar 24 22:48:26 2009 -0400 |
tree | 82f4c85842e5e02489eb0533609dabb865e55198 | |
parent | c0f2ee34a5a0b79fd98d965ad8ae765d4639bfa5 [diff] |
[libata] Drain data on errors If the device is signalling that there is data to drain after an error we should read the bytes out and throw them away. Without this some devices and controllers get wedged and don't recover. Based on earlier work by Mark Lord Signed-off-by: Alan Cox <alan@redhat.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>