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
0bfeaded17
commit
627457cd4a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=172974
@ -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);
|
result = bd_edd_io(od, dblk, x, xp, write);
|
||||||
else
|
else
|
||||||
result = bd_chs_io(od, dblk, x, xp, write);
|
result = bd_chs_io(od, dblk, x, xp, write);
|
||||||
|
if (result == 0)
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (write)
|
if (write)
|
||||||
|
Loading…
Reference in New Issue
Block a user