1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-02 12:20:51 +00:00

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:
Warner Losh 2017-02-21 18:56:06 +00:00
parent ac027d9307
commit 6fec662c86
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=314053

View File

@ -718,8 +718,8 @@ vop_stdfsync(ap)
* 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;