Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

NFS server: Record bwrite() error in nfsrv_commit.

  • Loading branch information...
commit 4294d305e14a1f7650b0ea21dd7fac3ab042be70 1 parent e020cae
@vsrinivas vsrinivas authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 sys/vfs/nfs/nfs_serv.c
View
4 sys/vfs/nfs/nfs_serv.c
@@ -3608,7 +3608,7 @@ nfsrv_commit(struct nfsrv_descript *nfsd, struct nfssvc_sock *slp,
}
crit_enter();
- while (cnt > 0) {
+ while (error == 0 || cnt > 0) {
struct buf *bp;
/*
@@ -3629,7 +3629,7 @@ nfsrv_commit(struct nfsrv_descript *nfsd, struct nfssvc_sock *slp,
if (bp) {
if (bp->b_flags & B_DELWRI) {
bremfree(bp);
- bwrite(bp);
+ error = bwrite(bp);
++nfs_commit_miss;
} else {
BUF_UNLOCK(bp);
Please sign in to comment.
Something went wrong with that request. Please try again.