Break out of the I/O retry loop as soon as an I/O operation succeeds rather
than always retrying operations three times. Submitted by: nyan
This commit is contained in:
parent
281bc5f7fa
commit
48c9c853fb
@ -1251,6 +1251,8 @@ bd_io(struct open_disk *od, daddr_t dblk, int blks, caddr_t dest, int write)
|
||||
result = bd_edd_io(od, dblk, x, xp, write);
|
||||
else
|
||||
result = bd_chs_io(od, dblk, x, xp, write);
|
||||
if (result == 0)
|
||||
break;
|
||||
}
|
||||
|
||||
if (write)
|
||||
|
Loading…
Reference in New Issue
Block a user