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:
jhb 2007-10-25 16:53:35 +00:00
parent 281bc5f7fa
commit 48c9c853fb

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)