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:
John Baldwin 2007-10-25 16:53:35 +00:00
parent 0bfeaded17
commit 627457cd4a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=172974

View File

@ -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)