Make the code match the comments: If we have ANY buf's that failed
then return EAGAIN. The current code just returns that if the LAST buf failed. Reviewed by: kib@, trasz@ Differential Revision: https://reviews.freebsd.org/D9677
This commit is contained in:
parent
ac027d9307
commit
6fec662c86
@ -718,8 +718,8 @@ loop2:
|
||||
* to write them out.
|
||||
*/
|
||||
TAILQ_FOREACH(bp, &bo->bo_dirty.bv_hd, b_bobufs)
|
||||
if ((error = bp->b_error) == 0)
|
||||
continue;
|
||||
if ((error = bp->b_error) != 0)
|
||||
break;
|
||||
if (error == 0 && --maxretry >= 0)
|
||||
goto loop1;
|
||||
error = EAGAIN;
|
||||
|
Loading…
x
Reference in New Issue
Block a user