FDOPT_NORETRY is an option, and must be compared with fd->options,

not fd->flags.

PR:		kern/85481
Submitted by:	Lev Levinson <llevinson at inbox dot ru>
MFC after:	1 day
This commit is contained in:
Craig Rodrigues 2005-08-30 23:12:18 +00:00
parent 78f14f2cee
commit 1217bf6a9b

View File

@ -745,7 +745,7 @@ fdc_worker(struct fdc_data *fdc)
bp = fdc->bp;
fd = fdc->fd;
if (bp != NULL &&
(fdc->retry >= retries || (fd->flags & FDOPT_NORETRY))) {
(fdc->retry >= retries || (fd->options & FDOPT_NORETRY))) {
if ((debugflags & 4))
printf("Too many retries (EIO)\n");
return (fdc_biodone(fdc, EIO));