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:
parent
78f14f2cee
commit
1217bf6a9b
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user