From a1a9228a64c0f945b693c7d788949efbe0f52fe4 Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Fri, 18 Jul 2008 00:09:39 +0000 Subject: [PATCH] When dealing with a failed read properly set B_INVAL. --- sys/vfs/nfs/nfs_bio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/vfs/nfs/nfs_bio.c b/sys/vfs/nfs/nfs_bio.c index 9305345dfb..388396db6e 100644 --- a/sys/vfs/nfs/nfs_bio.c +++ b/sys/vfs/nfs/nfs_bio.c @@ -35,7 +35,7 @@ * * @(#)nfs_bio.c 8.9 (Berkeley) 3/30/95 * $FreeBSD: /repoman/r/ncvs/src/sys/nfsclient/nfs_bio.c,v 1.130 2004/04/14 23:23:55 peadar Exp $ - * $DragonFly: src/sys/vfs/nfs/nfs_bio.c,v 1.44 2008/07/14 17:45:49 dillon Exp $ + * $DragonFly: src/sys/vfs/nfs/nfs_bio.c,v 1.45 2008/07/18 00:09:39 dillon Exp $ */ @@ -528,7 +528,7 @@ again: vfs_busy_pages(vp, bp); error = nfs_doio(vp, &bp->b_bio2, td); if (error) { - bp->b_flags |= B_ERROR; + bp->b_flags |= B_ERROR | B_INVAL; brelse(bp); return (error); } -- 2.11.4.GIT