Clear flags before using an inactive buffer. This is a kludge, but

matches the code in bread().

Reviewed by:	bde
This commit is contained in:
Paul Traina 1996-06-08 05:59:04 +00:00
parent a13bb127d2
commit 75985daf3b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=16192
2 changed files with 4 additions and 2 deletions

View File

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfs_bio.c 8.5 (Berkeley) 1/4/94
* $Id: nfs_bio.c,v 1.21 1995/12/17 21:12:13 phk Exp $
* $Id: nfs_bio.c,v 1.22 1996/01/24 18:52:18 mpp Exp $
*/
#include <sys/param.h>
@ -250,6 +250,7 @@ nfs_bioread(vp, uio, ioflag, cred)
return (EINTR);
if ((bp->b_flags & B_CACHE) == 0) {
bp->b_flags |= B_READ;
bp->b_flags &= ~(B_DONE | B_ERROR | B_INVAL);
not_readin = 0;
vfs_busy_pages(bp, 0);
error = nfs_doio(bp, cred, p);

View File

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfs_bio.c 8.5 (Berkeley) 1/4/94
* $Id: nfs_bio.c,v 1.21 1995/12/17 21:12:13 phk Exp $
* $Id: nfs_bio.c,v 1.22 1996/01/24 18:52:18 mpp Exp $
*/
#include <sys/param.h>
@ -250,6 +250,7 @@ nfs_bioread(vp, uio, ioflag, cred)
return (EINTR);
if ((bp->b_flags & B_CACHE) == 0) {
bp->b_flags |= B_READ;
bp->b_flags &= ~(B_DONE | B_ERROR | B_INVAL);
not_readin = 0;
vfs_busy_pages(bp, 0);
error = nfs_doio(bp, cred, p);